Re: help with POST with XML data
Status: Alpha
Brought to you by:
coroberti
From: Robert I. <cor...@gm...> - 2008-07-21 04:44:21
|
Hi Chirag, On Mon, Jul 21, 2008 at 1:53 AM, Chirag Patel <pat...@ya...> wrote: > Before I tried curl-loader, I wanted to make sure I could use my normal > cURL switches (like the example below). Could someone send me an example of > how to run the below cURL command with curl-loader? > > Thanks! chirag > > curl -v -H "Content-Type: text/xml" -d > "<battery_unplugged><device_id>2</device_id><percentage>23</percentage><timestamp>Mon > Dec 25 15:52:55 -0600 > 2007</timestamp><time_remaining>231</time_remaining><user_id>1</user_id></battery_unplugged>" > " > http://localhost:3000/battery_unpluggeds?gateway_id=1&auth=9ad3cad0f0e130653ec377a47289eaf7f22f83edb81e406c7bd7919ea725e024 > No, it does not work with curl switches and has its own file configuration format. Read the FAQs here: http://curl-loader.sourceforge.net/doc/faq.html Example of configuration (batch) files are in tarball, where you may take a POST-ing example, place you XML to a file and work. There is also a tag to add/modify the headers similar to libcurl. Take care. > -- > Truly, > Robert Iakobashvili, Ph.D. > ...................................................................... > Assistive technology that understands you > ...................................................................... |