How to connect a socket to an http server through proxy?

后端 未结 2 1322
失恋的感觉
失恋的感觉 2021-02-08 10:29

Recently I wrote a program using sockets in C, to connect to an HTTP server running locally and thereby to do requests to that.

That worked fine for me. After that I tri

2条回答
  •  孤城傲影
    2021-02-08 10:36

    If you're specifically trying to bypass the proxy, you should talk to whoever administers your network to find out if that's even possible. If your first block of output is an attempt to connect to Google then it appears to me that there's some kind of transparent proxy on your network that you'll have to take special (and network-specific) steps to bypass.

    Of course, if you're just interested in getting data, you could try following the redirect...

提交回复
热议问题