Re: How to use proxy with requesting?

Hello,

This part of the code hasn't changed. In Amaya, I use the
HTProxy_add function instead, but that shouldn't change things, I think:

    HTProxy_add ("http", "http://proxy.ku.ac.th:8080");

And this works ok for me.

Have you initialized libwww before? Try to do the test from one of
the sample applications, by adding the proxy line there. Maybe the
problem is somewhere else.

If using my line solves the problem, then it means the bug is around
HTRequest_setProxy.

Could you try this out and report back to the list?

Thanks!

-Jose

> ----- 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?
> 
> 
> 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);

Received on Friday, 29 October 1999 13:00:09 UTC