Hi
Is proxy support broken in the 3.2?
>From htnet/HtHTTP.cc
===============================================
void HtHTTP::SetRequestCommand(String &cmd)
{
// Initialize it
cmd << _url.path() << " HTTP/1.1\r\n";
===============================================
Here ^^^ should be check
if (<it's proxy>) {
cmd << _url.get() << " HTTP/1.1\r\n";
} else
cmd << _url.path() << " HTTP/1.1\r\n";
Here's my output with debug=6
htdig try to fetch url via proxy, but command to fetch is "GET
/robots.txt HTTP/1.1"
and proxy doesn't know what host this query is for.
======================================================
1:0:http://www.gc.lviv.ua:8105/gc/41-99/
New server: www.gc.lviv.ua, 8105
Trying to retrieve robots.txt file on it
Creating an HtHTTP object
Making HTTP request on http://www.gc.lviv.ua:8105/robots.txt via proxy
(extra:80
80)
Try to get through to host www.gc.lviv.ua (port 8105) via HTTP
1 - Open of the connection ok
Assigning the server (extra) to the TCP connection
Assigned the remote host www.gc.lviv.ua
Assigning the port (8080) to the TCP connection
Assigned the port 8105
Connecting via TCP to (extra:8080)
New connection open successfully
Request
GET /robots.txt HTTP/1.1
Host: www.gc.lviv.ua
User-Agent: htdig
If-Modified-Since: Thu, 01 Jan 1970 03:00:00 MSK
Header line: HTTP/1.0 400 Bad Request
Header line: Server: Squid/2.2.STABLE5
Header line: Mime-Version: 1.0
Discarded header line: Mime-Version: 1.0
=============================================================
vadim.
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.