Re: xml post
Status: Alpha
Brought to you by:
coroberti
From: Robert I. <cor...@gm...> - 2008-10-30 17:06:58
|
Hi Matt, On Thu, Oct 30, 2008 at 5:12 PM, Matt Love <mat...@av...> wrote: > Attached are two captures from tshark. You can see that one of them > fails due to a 405 Method Not Allowed error, which I assume it is referring > to the PUT. The second response I get what I am expecting from the server. > > > There is a known issue of libcurl, that with UPLOAD_FILE is places PUT although you have correctly specified POST. Let's try to make some workaround using MULTIPART_FORM_DATA<file=@poll2.xml> tag instead. the syntax is very similar to the -F curl option. ########### URL SECTION #################################### URL= http://192.168.2.56/nomadesk/index.phpTask?Navigator::Task=ReceiveMessage URL_SHORT_NAME="Poll" REQUEST_TYPE=POST MULTIPART_FORM_DATA="file=@poll2.xml <file=@poll2.xml>" TIMER_URL_COMPLETION = 5000 TIMER_AFTER_URL_SLEEP = 5000 place poll2.xml to the same directory, where curl-loader resides. You may give it a try. Sincerely, Robert |