Application Development and Automation 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: 
Read only

Calling URL from ABAP with basic authentication(username and password)

Former Member
0 Likes
1,465

Hi,

I have a requirement to call one URL which has basic authentication i.e, we have to pass username and password to that URL. Moreover URL will open in one web browser. I am using method cl_gui_frontend_services=>execute, here URL is opening in IE but getting error "Unautherized". So how can we send user authentication details to that URl?

Regards,

Nayan

Hi,

I have a requirement to call one URL which has basic authentication i.e, we have to pass username and password to that URL. Moreover URL will open in one web browser. I am using method cl_gui_frontend_services=>execute, here URL is opening in IE but getting error "Unautherized". So how can we send user authentication details to that URl?

Regards,

Nayan

3 REPLIES 3
Read only

Former Member
0 Likes
803

Hi,

It gives that error in every computer? Don´t apears any window so you could put the login and password?

You could concatenate the login and pass.

http(s):// username : password @ server / resource . ext

example:

concatenate 'http://' d_user ':' d_pass '@' url into d_url.

but i don´t belive this is the best way

Read only

0 Likes
803

Hi Figueiredo,

Thanks for ur reply.

But I have already tried this and failed.

Is there any FM or Class which I can use?.

Regards,

Nayan

Read only

Former Member
0 Likes
803

Dear Nayan,

Greetings of the day!!

We are facing the same issue. Request you to please provide the solution us too.

Thanks in Advance!!
BR//

Alkesh.