W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1999

Re: HTRequest_setProxy

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Thu, 24 Jun 1999 10:54:04 -0400
Message-Id: <3.0.5.32.19990624105404.00b51b10@localhost>
To: Mikhail Grouchinski <mgrouch@earthlink.net>, www-lib@w3.org
At 19:43 23/06/1999 -0400, Mikhail Grouchinski wrote:
>Hello,
>
>I'm trying to use HTRequest_setProxy. My network doesn't have DNS
>server.
>The requests terminate with status 906 - 'host not found'. The trace log
>shows
>that libwww is trying to resolve host name and calls gethostbyname for
>the
>host specified in the request URL. It shouldn't do this since I specify
>the proxy using IP address
>and the IP address of the host in URL will be resolved by proxy.
>Everithing worked fine when I used HTProxy_add. Is it possible that
>LibWWW logic
>for per request basis proxies is wrong?

In the Host manager:

	http://www.w3.org/Library/src/HTHost.html

it should look for the proxy in HTHost_newWParse() and loop that up instead
of the original host. One problem may be that you should also set the
HTRequest_setFullURI() to YES - this is currently done in the proxy before
filter in

	http://www.w3.org/Library/src/HTFilter.html

Can you see what happens there?

Henrik
--
Henrik Frystyk Nielsen,
World Wide Web Consortium
http://www.w3.org/People/Frystyk
Received on Thursday, 24 June 1999 10:58:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:29 GMT