cURL / Mailing Lists / curl-users / Single Mail

curl-users

Usage of Curl for http Post

From: Tubati Narasimham <narasimham.tubati_at_gmail.com>
Date: Wed, 27 Oct 2010 15:58:00 -0400

Hello Everyone,

We have a requirement to do a http post for integrating our tools. And we
must do that through command line. I am not familiar with curl , so could
some one please show an example code of how to do it with curl ?

The message body of post will look something like below.

<?xml version="1.0" encoding="UTF-8"?>
<max:QueryCMMAXOBJECTCFG xmlns:max="http://www.ibm.com/maximo">
<max:CMMAXOBJECTCFGQuery>
<max:WHERE>objectname = 'PERSON'</max:WHERE>
</max:CMMAXOBJECTCFGQuery>
</max:QueryCMMAXOBJECTCFG>

Also the result of the above post will be an xml file. Is it some thing we
can achieve through curl ? Appreciate your help in this

-- 
regards
narasimham

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-10-27