cancel
Showing results for 
Search instead for 
Did you mean: 

Http get to Http post

Former Member
0 Kudos

Hello.

Currently the Http receiver adapter is configured as HTTP get . We need to change it to HTTP Post and put the parameters in the URL in the body.

Can someone please give an example on how to conevert a http get to http post. Is it a simple thing to do or does it need some java programming?

Thanks for your help.

Best Regards,

Teresa

Accepted Solutions (1)

Accepted Solutions (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

What PI version are you using? Only PI 7.3 supports GET method. For using http post and configuring as http receiver, you can refer the sdn for the http receiver scenarios. Yes, you can pass query as string too...

Ex: http://hostname:port/test?field1=value1&field2=value2&field3=value3

You dont need java effort.

Former Member
0 Kudos

Thanks Baskar. I am on SAP PI 7.1 Currently they have a HTTP_DESTINATION that is defined in SM59 and a Prolog. We want to change it to HTTP Post.

Below is how it is configured currently -

addressing type : HTTP Destination

HTTP Destination : UPS_DESTINATION

Content Type : application/x-www-form-urlencoded

XML Code : UTF-8

Prolog : arg1=

Epilog = &action=generateUPSShippingLabel&format=xml

How would I change above to HTTP post ?

Teresa

baskar_gopalakrishnan2
Active Contributor
0 Kudos

PI 7.1 supports only HTTP Post. So you dont need to do any change at your side for doing POST. What you are currently doing is POST Operation.

Answers (1)

Answers (1)

ernesto_cruz
Participant
0 Kudos

Hello,

this link contains info help:

cheers