Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: Hi
Shultz, Barry
11/11/2004 8:22:00 AM
Hi,
May I suggest using a simple tracing tool like tcptrace to see what the
client/server exchange is _supposed_ to look like:
http://www.pocketsoap.com...
As far as I recall, if you change "set-cookie" to "Cookie" in the
suggestion below, you will be fine. In any case, you could run tcptrace
in between ie and some web site that uses cookies and you would see
exactly what's happening.
My 0.02.
Barry
-----Original Message-----
From: Daun Jaun [mailto:compsci.isi@gmail.com]
Sent: Thursday, November 11, 2004 9:58 AM
To: ruby-talk ML
Subject: Re: Hi
Thanx for ur response;
seems i am not clearly explaining u what i want;
I am not interested in sending cookies to the browser/client; infact
I am playing the role of a browser here and i want to talk to the server
and in this situation i have to send (stored) cookies (at browser say)
to the program@server
This format or way of doing this is different from the way we play a
server role and send cookies to the client ; its can be
easily done using cgi.out
Unfortunately the same way does not work out with
httpObj.post
And coming to http_access2 its all complex i am unable to understand
Please help me..........
On Thu, 11 Nov 2004 16:34:40 +0900, Mark Hubbart
<discordantus@gmail.com> wrote:
> On Thu, 11 Nov 2004 13:52:51 +0900, Daun Jaun <compsci.isi@gmail.com>
> wrote:
> > What if i want to send cookies;
> > should i place it in headers if so how should i format the cookies
> > .., its where my problem exactly is COOKIES..?
>
> Google is your friend :) Googling 'cookie header' gives us:
>
http://wp.netscape.com/newsref/std/cookie...
>
> the format for the header is:
>
> Set-Cookie: NAME=VALUE; expires=DATE;
> path=PATH; domain=DOMAIN_NAME; secure
>
> So the header hash might look something like this:
>
> cookie = "NAME=foo;expires=Wdy, DD-Mon-YYYY HH:MM:SS GMT;"+
> "domain=example.com;path=/foo/bar;"
> {"Set-Cookie" => cookie}
>
> cheers,
> Mark
>
>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Hi
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password