CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2010
    Posts
    2

    Proxies in C# Web Browser (Help)

    I was wondering how to allow for a changing proxy for the web browser component of a C# application.

    Each time the page loads I need to change the proxy without changing the registry.

  2. #2
    Join Date
    Apr 2010
    Posts
    131

    Re: Proxies in C# Web Browser (Help)

    The web browser automatically detects and incorporates the proxy settings in Internet Settings, and thus is matched to the machine from which the control will be sending streams. Since the proxy is local and not remote, why do you need to change the machine's proxy settings for every call? Are you trying to spoof something?

    Knowing why you need to do something is as important as knowing what you are trying to do.

  3. #3
    Join Date
    May 2010
    Posts
    2

    Re: Proxies in C# Web Browser (Help)

    I'm trying to design a bot that submits a form to a website.
    Each time it submits the form, I need the web browser to change to a different proxy.

  4. #4
    Join Date
    Apr 2010
    Posts
    131

    Re: Proxies in C# Web Browser (Help)

    Still not getting it -- sorry. The only thing the proxy would have to do with is accessing the WAN stream. If you want to spoof beign different machines, etc. then it wouldn't be the proxy you need to change, but the request headers. Far as I know, the remote machine doesn't have any access to read your proxy settings in any way -- changing your proxy wouldn't make any difference at all to the remote server unless you changed your request headers. You can spoof request headers a heck of a lot easier than reconfiguring the local machine's proxy for every request.

    Unless I'm totally misunderstanding this, there's no reason or benefit to changin your local proxy every time you access a different page on a remote server.

    If it's request headers you really need to change, NET versions have various security settings to prevent certain headers from being modified. Look at the old legacy MSXMLHTTP4 ActiveX --it allows you to modify any request header you want.

    (edit) I was talking about httpwebrequest. using System.Net, you can still do everything manually.

  5. #5
    Join Date
    Jun 2010
    Posts
    1

    Re: Proxies in C# Web Browser (Help)

    mrgr8avill: You should not comment on subjects you do not understand. Not only does it not help the original poster, but you leave a permanent record of incorrect information on the internet for others to find.

    The purpose of the proxy is to mask the end users true public IP address. By changing IP addresses the host website will see each request as coming from a different user. This is a common task and not an odd request worthy of your gentle flaming...

    Takkun: I too am researching the most appropriate technique... ;-)

  6. #6
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Proxies in C# Web Browser (Help)

    Quote Originally Posted by LynxSI View Post
    The purpose of the proxy is to mask the end users true public IP address. By changing IP addresses the host website will see each request as coming from a different user.
    What is the purpose of this technique? Be aware that hacking or spoofing is in violation of the user agreement that you signed when you joined the site.

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