Results 1 to 5 of 5

Thread: Vb6: winhttp proxy socks5 support

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2016
    Posts
    224

    Vb6: winhttp proxy socks5 support

    i tried this code to connect winhttp with socks5 but it failed, anyone have an idea how to do it ?
    winHttpReq.setProxy 2, "proxyserver:8080", ""

  2. #2
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    4,683

    Re: Vb6: winhttp proxy socks5 support

    I guess SetProxy expects http/https proxy (not sure about the second) so something like this would explain the idea

    winHttpReq.setProxy 2, "http://proxyserver:8080", ""

    Probably using "https://proxyserver:443" to specify the secure protocol is available too but not SOCKS5 (that would have been a separate method).

    cheers,
    </wqw>

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2016
    Posts
    224

    Re: Vb6: winhttp proxy socks5 support

    Quote Originally Posted by wqweto View Post
    I guess SetProxy expects http/https proxy (not sure about the second) so something like this would explain the idea

    winHttpReq.setProxy 2, "http://proxyserver:8080", ""

    Probably using "https://proxyserver:443" to specify the secure protocol is available too but not SOCKS5 (that would have been a separate method).

    cheers,
    </wqw>
    so socks5 support is not possible ?

  4. #4
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    4,683

    Re: Vb6: winhttp proxy socks5 support

    Quote Originally Posted by geekmaro View Post
    so socks5 support is not possible ?
    No, I'm not aware of direct support in winhttp but could be wrong.

    Also, there must be an http proxy that can tunnel through a socks5 proxy available somewhere on the interwebs.

    I'm positive curl supports socks5 proxies though.

    Code:
    C:\Users\wqw>curl --help | findstr socks
         --socks4 <host[:port]> SOCKS4 proxy on given host + port
         --socks4a <host[:port]> SOCKS4a proxy on given host + port
         --socks5 <host[:port]> SOCKS5 proxy on given host + port
         --socks5-basic  Enable username/password auth for SOCKS5 proxies
         --socks5-gssapi Enable GSS-API auth for SOCKS5 proxies
         --socks5-gssapi-nec Compatibility with NEC SOCKS5 server
         --socks5-gssapi-service <name> SOCKS5 proxy service name for GSS-API
         --socks5-hostname <host[:port]> SOCKS5 proxy, pass host name to proxy
    cheers,
    </wqw>

  5. #5
    PowerPoster
    Join Date
    Jan 2020
    Posts
    2,322

    Re: Vb6: winhttp proxy socks5 support

    curl support socks5

Tags for this Thread

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