Skip to main content

Hi,

I am trying to connect to a webservice using UHTTP.SEND for GET operation but the url which am requesting  gives me the error HTTP/1.1 400 Bad Request through uniface 10.3 but this also returns response headers with no content.

But when I try to test the same URL it works fine with the Postman tool and also through CURL and it gives 200 response and provides the result as well.

Please let me know how to fix this issue with the UHTTP.



------------------------------
Pavan K
Rocket Forum Shared Account
------------------------------

Hi,

I am trying to connect to a webservice using UHTTP.SEND for GET operation but the url which am requesting  gives me the error HTTP/1.1 400 Bad Request through uniface 10.3 but this also returns response headers with no content.

But when I try to test the same URL it works fine with the Postman tool and also through CURL and it gives 200 response and provides the result as well.

Please let me know how to fix this issue with the UHTTP.



------------------------------
Pavan K
Rocket Forum Shared Account
------------------------------

Hi, 

The issue got resolved after using the UHTTP as a new instance

newinstance "UHTTP", vUHTTP

V_HTTPSTATUS = VUHTTP->SEND(VURL,"GET","","",VHEADER,VCONTENT,VRESPONSE)



------------------------------
Pavan K
Rocket Forum Shared Account
------------------------------