posting custom data
Status: Alpha
Brought to you by:
coroberti
|
From: Sergei Sh <jun...@na...> - 2009-01-30 09:00:07
|
/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
/
|