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 » U++ Library support » U++ MT-multithreading and servers » HTTPREQUEST using Proxy not working -- SOLVED
Re: HTTPREQUEST using Proxy not working [message #61719 is a reply to message #61717] Mon, 30 June 2025 07:53 Go to previous messageGo to previous message
deep is currently offline  deep
Messages: 272
Registered: July 2011
Location: Bangalore
Experienced Member
Hi Oblivion,

Thank you for your response.

After adding

#include <Core/SSL/SSL.h> // <==

I get same error.

I am using squid proxy.

With browser set to use proxy is accessing the url with same username and password.

Any other hints.

Code Section from http.cpp
void HttpRequest::StartConnect()
{
	LLOG("HTTP StartConnect");
	if(!Connect(addrinfo))
		return;
	addrinfo.Clear();

	if(ssl && ssl_proxy_host.GetCount() && !ssl_get_proxy) {
		StartPhase(SSLPROXYREQUEST);
		waitevents = WAIT_WRITE;
		String host_port = host;
		if(port)
			host_port << ':' << port;
		else
			host_port << ":443";
		data << "CONNECT " << host_port << " HTTP/1.1\r\n"
		     << "Host: " << host_port << "\r\n";
		if(!IsNull(ssl_proxy_username))
			data << "Proxy-Authorization: Basic "
			        << Base64Encode(proxy_username + ':' + proxy_password) << "\r\n";
		data << "\r\n";
		count = 0;
		LLOG("HTTPS proxy request:\n" << data);
	}
	else
		AfterConnect();
}


I get HTTP StartConnect in log file

I am not getting HTTPS proxy request: in log file


Warm Regards

Deepak

[Updated on: Mon, 30 June 2025 08:02]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Can't use MT to capture console output
Goto Forum:
  


Current Time: Tue Jul 08 07:43:13 CEST 2025

Total time taken to generate the page: 0.03393 seconds