Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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.

2 REPLIES 2

FredericGirod
Active Contributor
0 Kudos

Did you check the log in the SMICM transaction ?

regards

fred

UweFetzer_se38
Active Contributor
0 Kudos

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