trealla-prolog / trealla

A compact, efficient Prolog interpreter written in plain-old C.
MIT License
268 stars 13 forks source link

http_get options #494

Open matteoredaelli opened 7 months ago

matteoredaelli commented 7 months ago

Hello

Where can I find the list of the Options for http_get?

Thanks in advance Matteo

infradig commented 1 week ago

A bit late to this, currently:

~/trealla (devel) $ tpl
?- use_module(library(http)).
   true.
?- http_get("http://192.168.1.1", Data, [status_code(Code),final_url(Location)]).
   Data = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\r\n        \"http://www.w3.org/TR/xhtml1", Code = 200, Location = "http://192.168.1.1".
?-