Hello,
what is the correct way to use the "http_url_post_xml" function including "pre_emptive authentication"?
i use the functions in this order:
http_debug
https_init
http_long_parseURL
http_url_post_xml
can anybody help me?
greatings from vienna
herbie
how to use pre-emptive authentication
-
- Site Admin
- Posts: 872
- Joined: Sun Jul 04, 2021 5:12 am
Re: how to use pre-emptive authentication
- You only need to call https_init() if you need to set non-default options for SSL/TLS.
- I can't see why you'd ever call http_long_parseURL?
- http_url_post_xml() is very old school. I would recommend updating to http_req or http_string and then using RPG's built-in XML capabilities.
- Preemptive BASIC auth is done by calling http_setAuth() prior to the transaction.
http_setAuth
http_req
XML-INTO/XML-SAX if doing XML. DATA-INTO/DATA-GEN otherwise.