display cookie - WeOnlyDo Discussion board

display cookie (wodHttpDLX)

by Klinzter, Friday, December 12, 2008, 17:53 (5826 days ago)

hello there,
I am using this to display the requests

wodhttp1.Request.Headers.ToString

but cookie its set and its showing empty.. why is that?

3/ip.php HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; AOL 8.0; Windows NT 5.1)
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-type: application/x-www-form-urlencoded
Accept-Language: en-us,en;q=0.5
Accept-Encoding: none
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: close
Cookie:

name=mike&lastname=dols

Re: display cookie

by woddrazen, Friday, December 12, 2008, 18:05 (5826 days ago) @ Klinzter

Klinzter,


You should read it from wodHttpDLX Cookies collection.
[code]Debug.Print http1.Response.Cookies.ToString[/code]
[code]Dim i As Integer

For i = 0 To http1.Response.Cookies.Count - 1
Debug.Print http1.Response.Cookies(i).Name & : & http1.Response.Cookies(i).Value
Next i[/code]
Drazen