Results 1 to 3 of 3

Thread: Change Headers via Webbrowser

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2006
    Posts
    2

    Unhappy Change Headers via Webbrowser

    Hello all,

    I'am searching for some days now for a way to change the headers sent to
    a site browsed by webbrowser control.

    a full header sent by IE on XP is something like that :

    Connection: Keep-Alive Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* Accept-Encoding: gzip, deflate Accept-Language: el Cookie: Date=9/18/2006; Privacy.net=Privacy+Analysis Host: network-tools.com User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    -i dont want to change the registry
    -i dont want to start making a browser from scratch, so i must use
    webbrowser

    Thanks in advance

  2. #2
    Frenzied Member litlewiki's Avatar
    Join Date
    Dec 2005
    Location
    Zeta Reticuli Distro:Ubuntu Fiesty
    Posts
    1,162

    Re: Change Headers via Webbrowser

    VB Code:
    1. strHeader = "Content-Type: application/x-www-form-urlencoded" & vbCrLf & "Content-Length: " & Len(strPostData) & vbCrLf
    2.    
    3.     'Post the data
    4.     web.Navigate2 "Website", 0, "", varPostData, strHeader

    varpost is your postdata that you want to sent to the server in bytes
    __________________
    ________________0îîî___
    ___îîî0________(___)____
    __(___)_________) _/_____
    ___\_ (_________(_/______
    ____\_)_________________

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2006
    Posts
    2

    Resolved Re: Change Headers via Webbrowser

    ... I can't believe it was right there in front of me and didn't give it a shot !

    (MSDN says about Additional headers, so I thought they wouldn't overwrite
    the original ones.
    I just got to lazy to try before I post.
    Thanks for your time)

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