Article View: es.comp.os.linux.programacion
Article #16566Re: Ayuda del algun guru del Python ese o me paso al Perl :)
From: Alex Estevez
Date: Wed, 05 Apr 2000 00:00
Date: Wed, 05 Apr 2000 00:00
100 lines
4297 bytes
4297 bytes
batsman wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
>
> >>>> El Tue, 04 Apr 2000 10:01:16 -0400, un alien�gena
> >>>> intent� hacerse pasar por Alex Estevez,
> >>>> y escribi� en es.comp.os.linux.programacion:
>
> >a ver que creo que antes no envie el mensaje donde debia:
> >
> >Yo tengo los manuales, preguntad que os respondo.
>
> Fale, las preguntas son:
>
> �Qu� funci�n de Cold Fusion ha generado los siguientes Cookies?
> �Cu�l es el plaintext correspondiente?
> �C�mo puede implementarse esa funci�n en perl?
>
> Adjunto 2 muestras de las cookies...
>
> Set-Cookie: TERRA_EMC_HORA=%3C1ZJ47QY%29%5FPGC%2D%2544M%245O%225WI%23%3C%2C%28%2
> 4%3CO%5BW%28%2EJPP++%0A; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/;
> Set-Cookie: TERRA_EMC_MINUTO=%3A1ZJ47QY%29%5FPGC%2D%2544M%245O%225WI%23%3C%2C%28
> %24%3CO%5BW%28%2C+%0A; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/;
>
> Set-Cookie: TERRA_EMC_HORA=%3C1ZJ47QY%29%5FPGC%2D%2544M%245O%225WI%23%3C%2C%2B%2
> 4%3CSXW%28%2EJPP%21L%0A; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/;
> Set-Cookie: TERRA_EMC_MINUTO=%3A1ZJ47QY%29%5FPGC%2D%2544M%245O%225WI%23%3C%2C%2B
> %24%3CSXW%28%2C+%0A; expires=Sun, 27-Sep-2037 00:00:00 GMT; path=/;
>
bien
punto 1.
el tag <cfcontent type="elque/sea"> puesto en una pagina coldfusion
especifica su mimetype
punto 2.
el tag <CFCOOKIE name="nombre" VALUE="elvalor" EXPIRES="eltiempo"> crea
una cookie.
punto 3.
Cold fusion tiene varias funciones para tratamiento de fechas, entre
ellas crear una fecha
como "objeto valido" o como "ODBC timestamp format"
si yo creo una fecha con CreateDate(2000,10,10)
me creara: "{ts '2000-10-10 00:00:00'}"
si la creo con CreateODBCDate(2000,10,10)
me creara: "{d '2000-10-10'}"
esto es lo que me habeis pasado:
HORA
=%3C1ZJ47QY%29%5FPGC%2D%2544M%245O%225WI%23%3C%2C%28%24%3CO%5BW%28%2EJPP++%0A
MINUTO=%3A1ZJ47QY%29%5FPGC%2D%2544M%245O%225WI%23%3C%2C%28%24%3CO%5BW%28%2C+%0A
HORA
=%3C1ZJ47QY%29%5FPGC%2D%2544M%245O%225WI%23%3C%2C%2B%24%3CSXW%28%2EJPP%21L%0A
MINUTO=%3A1ZJ47QY%29%5FPGC%2D%2544M%245O%225WI%23%3C%2C%2B%24%3CSXW%28%2C+%0A
y esto lo tengo yo al hacer una prueba de la pagina
HORA
=%3C1ZJ47QY%29%5FPGC%2D%2543M%24%3DM%225WM%23%3C%24%29%24%3CK%5EW%28%2EJP%40+T%0A
MINUTO=%3A1ZJ47QY%29%5FPGC%2D%2543M%24%3DM%225WM%23%3C%24%2A%24%3C%5F%5DW%28%2C+%0A
si lo ponemos todo junto:
HORA
=%3C1ZJ47QY%29%5FPGC%2D%2544M%245O%225WI%23%3C%2C%28%24%3CO%5BW%28%2EJPP++%0A
HORA
=%3C1ZJ47QY%29%5FPGC%2D%2544M%245O%225WI%23%3C%2C%2B%24%3CSXW%28%2EJPP%21L%0A
HORA
=%3C1ZJ47QY%29%5FPGC%2D%2543M%24%3DM%225WM%23%3C%24%29%24%3CK%5EW%28%2EJP%40+T%0A
MINUTO=%3A1ZJ47QY%29%5FPGC%2D%2544M%245O%225WI%23%3C%2C%28%24%3CO%5BW%28%2C+%0A
MINUTO=%3A1ZJ47QY%29%5FPGC%2D%2544M%245O%225WI%23%3C%2C%2B%24%3CSXW%28%2C+%0A
MINUTO=%3A1ZJ47QY%29%5FPGC%2D%2543M%24%3DM%225WM%23%3C%24%2A%24%3C%5F%5DW%28%2C+%0A
a ver si alguien saca algo en claro
Ademas de esto, Cold fusion tiene una funcion CreateTimeSpan que crea un
objeto con
una fecha en formato especial para sumar o restar de otras fechas.
tambien tiene funciones para comparar fechas, a�adir un tiempo a las
fechas, extraer
un dia, dia de la semana, mes etc
dateformat que devuelve la fecha en el formato especificado...
Espero que esto halla servido.
Alex estevez
Technical Details
Message-ID:
<38EB6615.3AE0FF5B@interactivebureau.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<slrn8dfrg7.79g.jajs@Pascual.es> <uhfbb8.1h1.ln@simpsons4ever> <slrn8dk41r.185.jajs@Pascual.es> <slrn8douhi.50.javier@eb2dsn.ampr.org> <kv7jb8.nm8.ln@simpsons4ever> <38E9F5AC.C4F7F813@interactivebureau.com> <pagfc8.0b.ln@simpsons4ever>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,fcc95392be363063 X-Google-Attributes: gidf86c8,public From: Alex Estevez <alex@interactivebureau.com> Subject: Re: Ayuda del algun guru del Python ese o me paso al Perl :) Date: 2000/04/05 Message-ID: <38EB6615.3AE0FF5B@interactivebureau.com> X-Deja-AN: 607095697 Cache-Post-Path: srv10!unknown@212.9.66.137 Content-Transfer-Encoding: 8bit References: <slrn8dfrg7.79g.jajs@Pascual.es> <uhfbb8.1h1.ln@simpsons4ever> <slrn8dk41r.185.jajs@Pascual.es> <slrn8douhi.50.javier@eb2dsn.ampr.org> <kv7jb8.nm8.ln@simpsons4ever> <38E9F5AC.C4F7F813@interactivebureau.com> <pagfc8.0b.ln@simpsons4ever> Content-Type: text/plain; charset=iso-8859-1 Organization: Interactive Bureau Barcelona X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) Mime-Version: 1.0 Reply-To: alex@interactivebureau.com Newsgroups: es.comp.os.linux.programacion