Re: http_open vs. http_get using proxy



On 2006-01-10, mans <mshapshak@xxxxxxxxx> wrote:
> Hello All,
>
> I am using the little test program below to make sure I get past my
> proxy. The first one works and the second one doesnt.
>
> Anybody have any ideas about what I am doing wrong?

http://www.google.com answers using a redirect message and this is not
handled by http_get, while it is handled automatically by http_open.
I will have a look at that.

Cheers --- Jan


>
> Thanks in Advance!
> Mans
> P.S.
> I am running 5.6.0 on WindowsXP.
>
> ------------------
>
>
>
>:- use_module(library('http/http_client')).
>:- use_module(library('http/http_sgml_plugin')).
>:- use_module(library('http/http_open')).
>
> runit :-
> http_open('http://www.google.com', In,[proxy('11.0.0.5',80)]),
> copy_stream_data(In, user_output),
> close(In).
>
> testit :-
> http_get('http://www.google.com', Response, [proxy('11.0.0.5',80)]),
> write(Response).
>
.



Relevant Pages

  • http_open vs. http_get using proxy
    ... I am using the little test program below to make sure I get past my ... proxy. ... The first one works and the second one doesnt. ... Prev by Date: ...
    (comp.lang.prolog)
  • Re: COM Events passing Object as parameter (problem)
    ... Thanks for the response. ... In my test program, ... It still happens even if I store a reference to the ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Soap Response
    ... Try refreshing the proxy. ... Thread-Topic: Soap Response ... webservice as per the following code in the proxy class: ... Public Function process3ParmRequest(ByVal inputHeader As String, ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: How does the MSFT Web Service Proxy Generator figure out .NET object types?
    ... Thank you for the speedy response. ... However, when I generate a Web Reference for the Web Method above, I ... get the following proxy implementation: ... > The WSDL is all that the proxy generator uses. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: The remote server returned an error: (407) Proxy Authenticatio
    ... System.Net.WebRequest request; ... System.Net.WebResponse response; ... When I hover Proxy in the debugger I can see my proxy server address but I'm ... call off the WebRequest class. ...
    (microsoft.public.dotnet.languages.csharp)