cancel
Showing results for 
Search instead for 
Did you mean: 

Sample code for HTTPS Basic Authentication

pushkar_dhale
Participant
0 Kudos

Hello Experts,

     I am new to HTTPS ABAP coding so I need your help.

     Could you please explain what are the pre requisite for HTTPS coding and sample program for the same.

     I searched a lot for sample coding for HTTPS Basic Authentication but did not get as per my need.

     e.g. I want to call one URL like https://host.com/xyztask.do?&XML using ABAP code which will provide output in XML format after doing Basic

     Authentication. So kindly provide sample code or Steps for the same.

Best Regards,

Pushkar Dhale

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Pushkar,

Before going to start HTTPS ABAP coding please check the https ports available or not.

You can get this information in SMICM transaction.

Thanks,

Ashok.

Former Member
0 Kudos

You configure login procedures for the respective ICF service, it isn't something you code yourself.

pushkar_dhale
Participant
0 Kudos

Hi Samuli,

     Thank you for your reply.

    

     I want to call one URL like https://host.com/xyztask.do?&XML (Third party) using ABAP     

     code which will provide output in XML format after doing Basic Authentication.

Best Regards,

Pushkar Dhale

Former Member
0 Kudos

So you want to know how to implement Basic Authentication in the HTTP client of AS ABAP? In that case see documentation on the ABAP class CL_HTTP_CLIENT. Create a RFC destination of type G in SM59 for the external web server, select Basic Authentication under the tab Logon & Security and maintain User and Password.