How to make a conection to a http proxy with sockets

This is a discussion on How to make a conection to a http proxy with sockets within the C# Programming forums, part of the General Programming Boards category; Well... i already make a client with socket to socks proxies 5... but not find any infos about how to ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    7

    Smile How to make a conection to a http proxy with sockets

    Well... i already make a client with socket to socks proxies 5... but not find any infos about how to make requests with a http proxy (using sockets and not the .net library).

    Any about how to make the request.

    Thanks in advance.

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    You want to implement the http protocol yourself? Well, good luck to you sir.
    If not, there are existing http classes in the framework, under System.Net I believe.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    7
    Well... i not want to reinvent nothing... there are existing classes but the program have to use sockets if not you can be sure that i not ask.

    By the way, any idea about my question?

  4. #4
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    So how are you going to talk to the server if you refuse to use an existing http implementation or write your own?
    I see no reason why you shouldn't make use of the existing HttpWebRequest class.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  5. #5
    Registered User
    Join Date
    Oct 2008
    Posts
    7
    Well, im not saying that already libraries are good or bad, my questio was how to make a simple HTTP request with a http proxy.

    For example, after read the rfc, the request to the server have to be something like this:

    That is what i was searching because i want to use sockets and not HttpWebRequest class.

    Its all. Thank for the help.

  6. #6
    Registered User
    Join Date
    Oct 2008
    Posts
    7
    Quote Originally Posted by Magos View Post
    I see no reason why you shouldn't make use of the existing HttpWebRequest class.
    Find one reason .

    try to use HttpWebrequest when you are working with ThreadPool , perhaps some errors, because HttpWevrequest use internally Thread Pool

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. trying to make a KenGen ( for a game tool )
    By lonewolfy in forum C# Programming
    Replies: 4
    Last Post: 03-28-2007, 08:23 AM
  2. Win32 Common Controls in C++, how do i make and use them?
    By C+noob in forum Windows Programming
    Replies: 6
    Last Post: 01-09-2006, 10:53 AM
  3. MMO Theory, How to make Gameloop & Sockets both work?
    By Zeusbwr in forum Game Programming
    Replies: 3
    Last Post: 08-01-2005, 12:29 PM
  4. "Cannot make pipe"
    By crepincdotcom in forum C Programming
    Replies: 5
    Last Post: 08-16-2004, 12:43 PM
  5. Starting window sockets
    By _Cl0wn_ in forum Windows Programming
    Replies: 2
    Last Post: 01-20-2003, 10:49 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21