AnsweredAssumed Answered

XML POST with Insert from cURL

Question asked by aydinbuyukyilmaz on Aug 27, 2018
Latest reply on Aug 30, 2018 by skywillmott

I am trying to communicate with our telecom for sms everything is ok but I am stuck in xml post.

 

How should I use as XML POST in the Insert from URL?

 

As follows (generate from postman);

 

curl -X POST

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

-H "Cache-Control: no-cache"

-H "Postman-Token: c3248926-e459-d0a7-6d19-fc32dd2b77b6"

-d '<?xml version="1.0" encoding='\''utf-8'\'' ?>

 

<mainbody>

<header>

<company>Netgsm</company>

<usercode>3129114825</usercode>

<password>KKKKKK</password>

<startdate>250820180900</startdate>

<stopdate>250820181145</stopdate>

<gorevid>210855440</gorevid>

<type>1</type>

</header>

</mainbody>' "https://api.netgsm.com.tr/sms/edit/xml"

Outcomes