Home » Developing U++ » UppHub » NetProxy package. (HTTP/SOCKS4/4a/5 with BIND support) encapsulation for U++
Re: NetProxy package. (HTTP/SOCKS4/4a/5 with BIND support) encapsulation for U++ [message #61447 is a reply to message #61446] |
Fri, 14 February 2025 08:51  |
Oblivion
Messages: 1223 Registered: August 2007
|
Senior Contributor |
|
|
Hello superdev,
Quote:Couldn't make HttpRequest work through proxy. NetProxy successfully connects to proxy server, then HttpRequest receives result(GET) using no proxy.
If you are trying to use an HTTP_CONNECT-based proxy, HttpRequest class already comes with that feature (supports internally). Just check the docs, you don't really need NetProxy.
If you are trying to use a socks-based proxy with HttpRequest class, unfortunately that is not possible at the moment. (HttpRequest class needs to be patched in order to make it work.)
The reason is, HttpRequest (HR) keeps track of many states and does redirections. It is a one big beast and it wasn't designed with utilizing NetProxy in mind.
So, even if you can connect an HR using NetProxy, HR's internal state is not adjusted accordingly, hence it will not work unless it is patched.
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Fri, 14 February 2025 08:51] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu Aug 14 16:28:59 CEST 2025
Total time taken to generate the page: 0.09452 seconds
|