Re: http_open vs. http_get using proxy



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
.