Re: How to use proxy with requesting?

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 UTC