Re: http_open vs. http_get using proxy
- From: Jan Wielemaker <jan@xxxxxxxxxxxxxxxxxxx>
- Date: 10 Jan 2006 22:27:07 GMT
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).
>
.
- Follow-Ups:
- Re: http_open vs. http_get using proxy
- From: mans
- Re: http_open vs. http_get using proxy
- References:
- http_open vs. http_get using proxy
- From: mans
- http_open vs. http_get using proxy
- Prev by Date: http_open vs. http_get using proxy
- Next by Date: Re: Lists in Learn Prolog Now
- Previous by thread: http_open vs. http_get using proxy
- Next by thread: Re: http_open vs. http_get using proxy
- Index(es):
Relevant Pages
|
|