Skip to Content
0

403 when use cl_http_client->authenticate(usr,pwd)

Nov 16, 2017 at 09:18 AM

24

avatar image
Former Member

Dear Experts,

I've developed a program to get content from a HTTPS website.

And I use below code:

SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L0S33 {
color: #4DA619;
}
.L0S52 {
color: #0000FF;
}
.L0S55 {
color: #800080;
}
.L0S70 {
color: #808080;
}

  CALL METHOD lo_http_client->authenticate

    EXPORTING

      username = 'username'

      password = '******'

      .

to input username&pwd. But get an 403 error when receive().

If I comments these lines, and run the program again. A popup dialog shows up and I could input the username&pwd into it. After that, I get the right response.

Where is the problem? thanks for help.

10 |10000 characters needed characters left characters exceeded
Former Member

Did you check the log in the SMICM transaction ?

regards

fred

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Uwe Fetzer Nov 16, 2017 at 03:48 PM
0

If you want to access an https website, you have to install the ssl certificate for this site first.
(search for transaction STRUST)

Share
10 |10000 characters needed characters left characters exceeded