CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: set browser id

  1. #1
    Join Date
    Apr 2003
    Posts
    44

    set browser id

    hello

    i wrote a program that post some data to a server. the server response only if the correct browser identification was transmitted - i think so is this realy possible that a server dont send information if no browser id available or the wrong one?
    however please tell me how can i set the browser id? i use the webclient class:
    WebClient wc = new WebClient();
    wc.Headers.Add("Content-Type","application/x-www-form-urlencoded");

    and so on...

  2. #2
    Join Date
    Apr 2003
    Posts
    44

    user-agent

    i have a new keyword for my problem:
    "user-agent". if i post information to the server i have to set the user-agent. how can i do this? any ideas?

  3. #3
    Join Date
    Apr 2003
    Posts
    44
    ok, if no one want to answer i do it myself ;-)

    Webclient wc = new Webclient();
    wc.Headers.Add("User-Agent","Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624");

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

Featured