Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
Oblivion is currently offline  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



[Updated on: Fri, 14 February 2025 08:51]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Request for adding GraphCtrl to UppHub
Next Topic: A terminal emulator widget for U++
Goto Forum:
  


Current Time: Thu Aug 14 18:50:32 CEST 2025

Total time taken to generate the page: 0.12032 seconds