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

Http connection

Former Member
0 Likes
2,885

Hi,

I tried running the program RSWF_TEST_HTTP with a URL but I am getting a error cannot create http client. Where do I check for missing config. If run the url from IE browser I get a value of 200 which is correct.

Regards

Naveen Agarwal

13 REPLIES 13
Read only

athavanraja
Active Contributor
0 Likes
2,222

1. what is the sy-subrc value after the method call

CALL METHOD cl_http_client=>create_by_url

2. Which url are you using? is it a public url?

is it a internet url or intranet?

Do you connect to internet via proxy?

Regards

Raja

Read only

0 Likes
2,222

Hi,

We using a public internet URL, we use proxy and I have made the settings. We have gone one step ahead. We are no getting a different error.

The program RSWF_TEST_HTTP gives now a different error.

HTTP - Receive: RC=108

The sy-subrc code for method l_http_client->receive is 1 which I don't understand as method l_http_client->send is successful.

Regards

Naveen Agarwal

Read only

0 Likes
2,222

when you entered the url did you use "http://www.google.com" or "www.google.com" .

enter the url with http://..

also post the url you are using, i will try it in my system and let's see.

Regards

Raja

Message was edited by: Durairaj Athavan Raja

Read only

0 Likes
2,222

Hi,

No we are using someother URL but we are already using with http://..

Regards

Naveen Agarwal

Read only

0 Likes
2,222

can you share the url? i can check it out in my system.

Regards

Raja

Read only

0 Likes
2,222

Hi,

I cannot give you the URL here as that particular URL is being used to book orders. And I cannot share it in public. Also When I use internet explorer it works fines and return me the desired result.

Regards

Naveen Agarwal

Read only

0 Likes
2,222

Ok. Does it require authentication?

Did you try with some other public url and facing the same problem?

Regards

Raja

Read only

0 Likes
2,222

Hi,

I tried using http://www.google.com but with same result.

Getting same error HTTP-Receive: RC=108

Regards

Naveen Agarwal

Read only

0 Likes
2,222

in the program comment it says

HTTP-codes: 100 - 199 = informations

i tried searching the net for HTTP code 108 but didnt find anything.

Is it a secured site (https)

Regards

Raja

Read only

0 Likes
2,222

No.

Read only

0 Likes
2,222

did you try debugging into the method http_client->receive.

I think thats the only way we can find the issue. also did you search OSS.

Whats is your actual requirement, we can look at it in a different way.

Regards

Raja

Read only

0 Likes
2,222

Hi,

I tried debuggin it but it gets stuck on

a function "http_read_sc"

in that function it is using "system-call plugin". Now why this is getting stuck no idea.

Regards

Naveen Agarwal

Read only

0 Likes
2,222

can you try the same URL with this program

RSHTTP01

Regards

Raja