2.1 library(http/http_open): HTTP client library
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog HTTP support
        • The HTTP client libraries
          • library(http/http_open): HTTP client library
            • http_open/3
            • map_method/2
            • disable_encoding_filter/1
            • http_set_authorization/2
            • open_hook/6
            • keep_alive/4
            • http_close_keep_alive/1
            • open_options/2
            • write_cookies/3
            • update_cookies/3
Availability::- use_module(library(http/http_open)).
Source[det]http_set_authorization(+URL, +Authorization)
Set user/password to supply with URLs that have URL as prefix. If Authorization is the atom -, possibly defined authorization is cleared. For example:
?- http_set_authorization('http://www.example.com/private/',
                          basic('John', 'Secret'))
To be done
Move to a separate module, so http_get/3, etc. can use this too.