Re: http_open vs. http_get using proxy
- From: Jan Wielemaker <jan@xxxxxxxxxxxxxxxxxxx>
- Date: 11 Jan 2006 11:31:39 GMT
On 2006-01-11, mans <mshapshak@xxxxxxxxx> wrote:
> Jan,
>
> Thanks for looking at that.
>
> The result from test it is:
>
> 2 ?- testit.
> ERROR: Domain error: `sgml_option' expected, found `proxy(proxy03,
> 8080)'
> ^ Exception: (20) sgml:sgml_parse(sgml_parser(523660),
> [document(_G3419), source('$stream'(447404)), content_length(221),
> syntax_errors(quiet), max_errors(-1), proxy(proxy03, 8080)]) ?
Would have helped if you sent that along with the first message :-)
Anyway, thats a bug. I just fixed it. I also added code in http_get/3
to handle the 302 redirect messages automatically. You find both
patches in the CVS version of http_client.pl. You can fetch this
file using your browser from the address below. Simply overwrite
the installed file and all should be fine.
http://gollem.science.uva.nl/cgi-bin/pl-cvsweb/pl/packages/http/http_client.pl
This patch will be in SWI-Prolog 5.6.2 (5.6.1 was released yesterday).
Enjoy --- Jan
.
- 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
- Re: http_open vs. http_get using proxy
- From: Jan Wielemaker
- Re: http_open vs. http_get using proxy
- From: mans
- http_open vs. http_get using proxy
- Prev by Date: Re: Command "listing" in SWI prolog
- Next by Date: Re: http_open vs. http_get using proxy
- Previous by thread: Re: http_open vs. http_get using proxy
- Next by thread: Re: http_open vs. http_get using proxy
- Index(es):