1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

C# and socks proxies?

Discussion in 'C, C++, C#' started by Standard Toaster, Jul 12, 2013.

  1. Standard Toaster

    Standard Toaster Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 29, 2009
    Messages:
    335
    Likes Received:
    190
    Hey guys,

    I've been using httpwebrequest for all of my bots. But now I realized that they don't support socks proxies?

    What do you guys use to handle http requests?

    Thanks.
     
  2. CSharp

    CSharp Newbie

    Joined:
    Jun 7, 2013
    Messages:
    39
    Likes Received:
    7
    Occupation:
    Developer, Entrepeneur
    Location:
    UK
    Yeah... it's a bummer! Only way I found around it is doing it in Python and using IronPython to let me use it in my c# projects.
     
    • Thanks Thanks x 2
  3. s0ap

    s0ap Executive VIP Jr. VIP Premium Member

    Joined:
    Sep 23, 2008
    Messages:
    230
    Likes Received:
    810
    Occupation:
    :] guess
    Location:
    Congo/DRC
    I use raw sockets for everything.
     
    • Thanks Thanks x 1
  4. captchaman

    captchaman Junior Member

    Joined:
    Sep 16, 2010
    Messages:
    190
    Likes Received:
    842
    Occupation:
    Software Programmer
    Location:
    USA
    • Thanks Thanks x 1
  5. milkyway

    milkyway Newbie

    Joined:
    Jul 18, 2013
    Messages:
    10
    Likes Received:
    1
    use raw sockets for every request, it's much faster than webreq.
     
    • Thanks Thanks x 1
  6. Standard Toaster

    Standard Toaster Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 29, 2009
    Messages:
    335
    Likes Received:
    190
    Thanks for the responses guys! I hear this all the time... raw sockets... but i dont where to start

    Are there any resources to learn this sort of stuff? maybe some code examples? or existing helper libraries?
     
  7. rootjazz

    rootjazz Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 21, 2012
    Messages:
    595
    Likes Received:
    309
    Occupation:
    sw dev
    Location:
    UK
    Home Page:
    meh, if speed is so important, then you shouldn't be using C#.

    And sockets are just another layer of abstraction, you can still step back one to make it faster.