Hello,
I have a problem with the webserices of Scott Klement.
I have successfully used it in other projects, but now I can't get any further.
I need to call a HTTPS page with Basic Authentication, that's what I'm doing now.
USER and PASS are hard coded in RPGle.
If I call the program as *PGMR, it runs perfectly.
If a normal user calls the program, he gets:
What additional rights are required here?
Holger
I have a problem with the webserices of Scott Klement.
I have successfully used it in other projects, but now I can't get any further.
I need to call a HTTPS page with Basic Authentication, that's what I'm doing now.
USER and PASS are hard coded in RPGle.
Code:
https_strict(*OFF); http_setauth(HTTP_AUTH_BASIC: 'user' : 'pass'); rc = http_url_post_stmf( url :%trim(sndfile) : %trim(rcvfile) HTTP_TIMEOUT : HTTP_USERAGENT ContentType );
If a normal user calls the program, he gets:
Code:
SetError() #13: HTTP/1.1 401 UNAUTHORIZED recvresp(): end with 401 recvdoc parms: chunked 0 interpret_auth(): entered SetError() #36: This page requires a user-id & password
Holger
Comment