Results 1 to 3 of 3

Thread: [RESOLVED] Get response/request Header information

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    78

    Resolved [RESOLVED] Get response/request Header information

    hi

    is there some VB code that can record the request/response header information? i am only intersted in the GET part of it if that makes it easier.

  2. #2

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    78

    Re: Get response/request Header information

    thanks for the reply

    this kind of stuff

    Code:
    
    !!GET /images/bottom_right_curve.jpg HTTP/1.1
    Accept: */*
    Referer: http://awardspace.com/partners.html
    Accept-Language: en-us
    Accept-Encoding: gzip, deflate
    If-Modified-Since: Mon, 05 Mar 2007 12:12:52 GMT; length=538
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
    Host: awardspace.com
    Connection: Keep-Alive
    Cookie: __utma=81567879.1177621416.1173285381.1173285381.1173285604.2; __utmb=81567879; __utmz=81567879.1173285381.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); __utmc=81567879
    
    !!HTTP/1.1 200 OK
    P3P: CP="NON DSP COR CURa ADMa DEVa CUSa TAIa OUR SAMa IND"
    Cache-Control: private
    Pragma: no-cache
    Expires: Thu, 01 Jan 1970 00:00:00 GMT
    Content-Type: application/x-javascript
    Content-Length: 777
    Date: Wed, 07 Mar 2007 16:50:07 GMT
    Server: Apache-Coyote/1.1
    Connection: close
    
    function gIT(o){if(o.nodeType==3)return o.nodeValue;if('SCRIPT'==o.tagName)return '';var t='';var cn=o.childNodes;for(var i=0;i<cn.length;i++)t+=gIT(cn[i]);return t;}
    function itxtbtl(){if(document.body.innerText!=undefined)return itxtsW(document.body.innerText).length;return gIT(document.body).length;}
    function itxtsW(x){var r=x;var v=/\s/g;if(x.search(v)!=-1){r=x.replace(v, '');}return r;}
    if(!rnn_itxt){
    var rnn_itxt=1;
    var itxturl='http://awardspace.de.intellitxt.com/v3/door.jsp?ts='+(new Date()).getTime()+'&pagecl='+itxtbtl()+'&fdt=1173286208559&ipid=4288&refurl='+document.location.href.replace(/\&/g,'%26').replace(/\'/g, '%27').replace(/\"/g, '%22');
    try {
    document.write('<s'+'cript language="javascript" src="'+itxturl+'"></s'+'cript>');
    }catch(e){}
    }
    GET /images/bottom_right_bgr.jpg HTTP/1.1
    Accept: */*
    Referer: http://awardspace.com/partners.html
    Accept-Language: en-us
    Accept-Encoding: gzip, deflate
    If-Modified-Since: Mon, 05 Mar 2007 12:12:52 GMT; length=363
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
    Host: awardspace.com
    Connection: Keep-Alive
    Cookie: __utma=81567879.1177621416.1173285381.1173285381.1173285604.2; __utmb=81567879; __utmz=81567879.1173285381.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); __utmc=81567879
    
    !!!!HTTP/1.0 304 Not Modified
    Date: Wed, 07 Mar 2007 16:50:12 GMT
    Server: Apache
    Connection: close
    ETag: "3c000086-16d-e061d900"
    
    HTTP/1.0 304 Not Modified
    Date: Wed, 07 Mar 2007 16:50:12 GMT
    Server: Apache
    Connection: close
    ETag: "3c00008a-21a-e061d900"
    
    HTTP/1.0 304 Not Modified
    Date: Wed, 07 Mar 2007 16:50:12 GMT
    Server: Apache
    Connection: close
    ETag: "3c000089-16b-e061d900"
    
    GET /v3/door.jsp?ts=1173286209902&pagecl=2577&fdt=1173286208559&ipid=4288&refurl=http://awardspace.com/partners.html HTTP/1.1
    Accept: */*
    Referer: http://awardspace.com/partners.html
    Accept-Language: en-us
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
    Host: awardspace.de.intellitxt.com
    Connection: Keep-Alive
    Cookie: VM_USR=ea67b922b7e544469268d4bbbc408343|1175877369
    
    !!HTTP/1.1 200 OK
    Cache-Control: private
    Pragma: no-cache
    Expires: Thu, 01 Jan 1970 00:00:00 GMT
    P3P: CP="NON DSP COR CURa ADMa DEVa CUSa TAIa OUR SAMa IND"
    Content-Type: application/x-javascript;charset=iso-8859-1
    Content-Encoding: gzip
    Vary: Accept-Encoding
    Date: Wed, 07 Mar 2007 16:50:09 GMT
    Server: Apache-Coyote/1.1
    Connection: close

    this comes from a log file of a little softx logger prog. wondering what sort of VB code is available to get the same data

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width