I have to make a script for a single REST web service, with all parameters in the endpoint and a Basic authentication in which you have to specify the domain. I've try to open a Web HTTP-HTML new script, and click on "Design -> Insert in Script -> REST API" option, so I've insert the URL in the form and the fuction web_rest will made; after I've insert the web_set_user() function and I've also specify the credential on Runtime Settings (under "Internet Protocol -> Proxy -> Authentication" but when I run the script the error below appeared:
HTTP Status-Code=401 (Unauthorized) for "https://...."
Can anyone explain me what's the procedure to record a REST web service? Thank you very much.
Below an extract from the script in Web HTTP-HTML protocol: