HTTP Post with curl to xml api, now i want that with espeasy?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
matzej
New user
Posts: 5
Joined: 07 Feb 2017, 21:05

HTTP Post with curl to xml api, now i want that with espeasy?

#1 Post by matzej » 20 May 2017, 20:06

Hi,

i have the following script from my Linux host:

Code: Select all

curl -c /tmp2/cookie.txt -X POST -i -H "Content-Type: application/hal+json" -H "Authorization: Basic BASE64USERPASS==" --insecure https://172.16.10.116/xmlapi/session/begin
curl -b /tmp2/cookie.txt  -d '<Command><Dial command="True"><Number>5896</Number><Protocol>SIP</Protocol></Dial></Command>' -H "Content-Type: text/xml" -X POST --insecure https://172.16.10.116/putxml
curl -b /tmp2/cookie.txt -X POST -i --insecure https://172.16.10.116/xmlapi/session/end
The 1.st cmd logs into a Cisco DX-80 Video system, the 2nd initiates a call and the 3rd logs out the cookie. the session cookie is stored in the cookie.txt file.

can i do the same with espeasy?
Any other solution is apreciated also.

regards Matze

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 4 guests