Re: posting custom data
Status: Alpha
Brought to you by:
coroberti
|
From: Robert I. <cor...@gm...> - 2009-01-30 09:43:58
|
Hi Sergei,
On Fri, Jan 30, 2009 at 10:42 AM, Sergei Sh <jun...@na...> wrote:
> /Hi!
> I try to use curl-loader for such requests:
> curl -i -X POST -H "Content-Type: text/json" -d
> '[{"command":"connect","refid":1},{"command":"post", "refid":2,
> "channel":"chat", "data":"hello world 3"}]' http://media.mysite.com/qrpc
>
> How to make URL section? I don't need any form and data fields. With
> this section I get error post_data is NULL
>
>
> URL=http://media.qik.com/qrpc
> URL_SHORT_NAME="1"
> HEADER="Content-Type: text/json"
> HEADER="Expect: "
> HEADER='[{"command":"connect","refid":1},{"command":"post", "refid":2,
> "channel":"chat", "data":"hello world 3"}]'
> REQUEST_TYPE=POST
> LOG_RESP_BODIES=1
> TIMER_URL_COMPLETION = 0
> TIMER_AFTER_URL_SLEEP =0
>
> I tried FORM and MULTIPART FORM and other options, no success.
> Thanks
> --
> Sergei Sh
>
>
Please, try to use the latest curl-loader version with instructions from
Alex,
provided by the the HOTOS file in doc directory.
http://curl-loader.svn.sourceforge.net/viewvc/curl-loader/trunk/curl-loader/doc/HOWTOS?view=markup
--
Truly,
Robert Iakobashvili, Ph.D.
......................................................................
Assistive technology that understands you
......................................................................
|