Re: show request - WeOnlyDo Discussion board

Re: show request (General questions)

by Klinzter, Tuesday, December 09, 2008, 00:15 (5828 days ago) @ woddrazen

ok I got that part now how can I display the cookie in the textbox too

because this Debug.Print Winsock(Index).Request.Headers.ToString
shows only this, with no cookie data


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:


is it possible to have something instead of
wodHttp1.DebugFile = App.Path & debug.txt


one fore requests
wodHttp1.DebugRequestData = txtRequest1.txt

that will show this

** Connecting to site.com on port 80
** Requesting URL http://site.com
POST /test.php HTTP/1.1
Host: site.com
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: IDName=KS48FKL8IJ7SDF=
Content-Length: 526

name=mike&lastname=dols


and one for the Response
wodHttp1.DebugResponseData = txtResponse1.txt

HTTP/1.1 200 OK
Cache-Control: no-cache, must-revalidate, proxy-revalidate
Pragma: no-cache
Content-Length: 30045
Content-Type: text/html; charset=utf-8
Expires: -1
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: user=sdsd expires=Mon, 15-Dec-2008 23:34:31 GMT; path=/
Date: Mon, 08 Dec 2008 23:34:30 GMT


<html>
<head>
<title>title</title>
</head>
<body>
test page
</body>
</html>

because at this point I have added about 25 customizations to the code to try and show the same data as debug file and I still cannot get the same results

thanks


Complete thread: