W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1999

Re: How to use proxy with requesting?

From: Henrik Frystyk Nielsen <frystyk@microsoft.com>
Date: Fri, 29 Oct 1999 09:38:12 -0700
Message-ID: <005201bf222c$00886f30$c2bb1eac@redmond.corp.microsoft.com>
To: "Niran A. \(Oui~\)....:\)" <b39nia@ku.ac.th>, <kahan@w3.org>
Cc: <www-lib@w3.org>
I think this should work. Try and run this with verbose protocol
messages turned on - see

    http://www.w3.org/Library/src/HTHome.html#Trace

on how to do this. Maybe Jose can help you if something has changed.

Henrik Frystyk Nielsen,
mailto:frystyk@microsoft.com

----- Original Message -----
From: "Niran A. (Oui~)....:)" <b39nia@ku.ac.th>
To: <frystyk@microsoft.com>
Sent: Thursday, October 28, 1999 19:42
Subject: How to use proxy with requesting?


>
>   Hi, Henrik
>
> I had request HTML form Network by this part of code:
>
>
>
>
>         request = HTRequest_new();
>
>         /* set proxy for request */
>         BOOL proxy=NO;
>
proxy=HTRequest_setProxy(request,"http://proxy.ku.ac.th:8080");
>         if(proxy==YES)
>         {
>                 printf("Proxy OK\n");
>                 printf("proxy=%s\n",HTRequest_proxy(request));
>                 printf("address=%s\n",getme);
>         }
>         else printf("Proxy NO\n");
>
>         /* Start the load */
>         status = HTLoadToFile(getme, request, outputfile);
>
>         /* Go into the event loop... */
>         HTEventList_loop(request);
>
>
>
>
>
>
> But it's not work. It can't request HTML through proxy server.
> Or I may be wrong implement. Please, suggest me the
> correcting code.
>
> Thank you very much
>
> Niran A.
>
>
>
Received on Friday, 29 October 1999 12:38:52 GMT

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