Question Ponnumani Gurusamy · May 13, 2017

HTTP Request and Responce

Hi Team,

        How to we get a data from http response using HHTP request.Give one Example.

 

Thanks ,

Ponnumani Gurusamy. 

Comments

Eduard Lebedyuk · May 13, 2017

HttpResponse property contains response. Here's a sample:

Set req = ##class(%Net.HttpRequest).%New()
// build the request
Do req.Post("url")
Set str = req.HttpResponse.Data.Read()
Write str
0
Ponnumani Gurusamy  May 16, 2017 to Eduard Lebedyuk

How to we add SSL configuration for above code.

0
Ponnumani Gurusamy · May 15, 2017

Hi,
    Suppose we are passing only services but not directory and host name.If possible it is return any token.Please give the solution.

0
Eduard Lebedyuk  May 15, 2017 to Ponnumani Gurusamy

Please provide code sample and error text.

0
Ponnumani Gurusamy  May 16, 2017 to Eduard Lebedyuk

I am using HTTPS Protocal.So request is working fine and response is return empty.But this same URL run with Post man.It is return correct xml data.So how to I solve the code.

0
Hugo Barros  Dec 13, 2017 to Ponnumani Gurusamy

how did you solve this ? i have the same error

0