🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #16577

Re: Ayuda del algun guru del Python ese o me paso al Perl :)

#16577
From: batsman batsman
Date: Wed, 05 Apr 2000 00:00
103 lines
4899 bytes
-----BEGIN PGP SIGNED MESSAGE-----


    >>>> El Wed, 05 Apr 2000 12:13:09 -0400, un alien�gena
    >>>> intent� hacerse pasar por Alex Estevez,
    >>>> y escribi� en es.comp.os.linux.programacion:

>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:
>> [ TRES PREGUNTAS ]
>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'}"
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Me suena :-) De hecho las cookies que terra usaba antes eran as�... Y todav�a
usan este formato en un campo oculto del form para enviar mensajes gratis a
m�viles.

>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

Ver�s, la cuesti�n es que queremos "sintetizar" esas cookies, es decir, crear
cookies como esas, y que terra se las coma como si fueran suyas.
Es que he hecho un script en perl para enviar mensajes a m�viles, usando la
p�gina en cuesti�n. Pero claro, para conseguir las cookies hay que hacer una
petici�n al servidor antes y todo va mucho m�s lento que si enviara
directamente el mensaje con mis cookies, reci�n horneadas con el perl.

De todas formas, todav�a no tengo del todo claro el formato de las cookies: �a
qu� corresponden? �a la fecha en formato especial para que se pueda
sumar,restar,etc...? Ya sabes que mi intenci�n es que las haga mi script, o
sea que en el fondo me da lo mismo el interfaz de Cold Fusion, lo que yo
quiero es la implementaci�n de esas funciones.

Much�simas gracias por la informaci�n, ahora ya sabemos por d�nde buscar :-)

- -- 
              _           _                             
             | |__   __ _| |_ ___ _ __ ___   __ _ _ __  
             | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ 
             | |_) | (_| | |_\__ \ | | | | | (_| | | | |
             |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|

             Real email: batsman dot geo at yahoo dot com

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Public key via email: send mail with Subject: [PGPKEY]

iQEVAwUBOOuHrr0Y27yr0iefAQGXnQf9HKzcLfVqUMHcAh5O0roNKzmD+K35OkQF
lBxpf+bAyw8cKApqa6teAd8c1zH1yn9IdskumzGKEhNCtHLkePRuP0ckRgn/iROK
U9wim39vLpPelmxkBfq5esKOeESeVc8k5HpdRnpAkbXgJsJsJe75lIvnXoHIqK1D
NCBW/xvTkYCGYNEFlvM1jL2oluEsVygAOHdfmchTD+yZTzZNoye3/31kbvH5hNMj
0irc54v3LKsieq2IOep3cx3hTvneRbAx24EnyYFNO4yMZrLKiELU0SSBlyZyuZrt
dAoijLPbcblAiB1iv3kfzAFSF1aHleTPSuqPHA0zQsIqTM4c873DHg==
=pp1l
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <j31gc8.b94.ln@simpsons4ever>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
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> <38EB6615.3AE0FF5B@interactivebureau.com>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,fcc95392be363063
X-Google-Attributes: gidf86c8,public
From: batsman@simpsons4ever. (batsman)
Subject: Re: Ayuda del algun guru del Python ese o me paso al Perl :)
Date: 2000/04/05
Message-ID: <j31gc8.b94.ln@simpsons4ever>
X-Deja-AN: 607247946
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> <38EB6615.3AE0FF5B@interactivebureau.com>
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: abuse@news.wanadoo.es
X-Trace: m2newsread.uni2.es 954968852 62.36.25.44 (Wed, 05 Apr 2000 23:07:32 MET DST)
Organization: Wanadoo Usenet News - Visita http://www.wanadoo.es/
Mime-Version: 1.0
Reply-To: see_signature-mira_firma
NNTP-Posting-Date: Wed, 05 Apr 2000 23:07:32 MET DST
Newsgroups: es.comp.os.linux.programacion