Re: segmentation fault
Status: Alpha
Brought to you by:
coroberti
From: Robert I. <cor...@gm...> - 2010-01-21 08:17:43
|
Hi Brocha, On Thu, Jan 21, 2010 at 9:54 AM, Brocha Strous <br...@ca...>wrote: > > I am trying to run a simple POST request which has 6 variables that need > to be replaced from the input file. > Got it. > > > 2. which example config file was taken as initial; > > > I used post-form-tokens-fr-file.conf and random_file_records.conf as > examples. > Good. Please, pay attention, that you cannot make a POST without getting the form, therefore, the first is GET as in the example is required: # GET-part URL= http://10.30.6.42:8888/vax/root/Admin URL_SHORT_NAME="Login-GET" REQUEST_TYPE=GET TIMER_URL_COMPLETION = 4000 TIMER_AFTER_URL_SLEEP =0 # POST-part URL="" URL_SHORT_NAME="Login-POST" URL_USE_CURRENT= 1 REQUEST_TYPE=POST FORM_USAGE_TYPE= RECORDS_FROM_FILE FORM_STRING= username=%s&password=%s #means credentials from file FORM_RECORDS_FILE= ./conf-examples/credentials.cred # Path relative to curl-loader location > URL=http://localhost/load/main.php > URL_SHORT_NAME="play-event" > REQUEST_TYPE=POST > FORM_USAGE_TYPE= RECORDS_FROM_FILE > FORM_STRING= > > ws_name=PlayEvent&ws_action=Create&descriptor-media_id=%s&credentials-session_id=%s&credentials-consumer_id=%s&credentials-device_id=%s&descriptor-consumer_id=%s&descriptor-media_kind=track&descriptor-device_id=%s×tamp=1&descriptor-playing_source_type=stream&descriptor-complete_play=1&descriptor-duration=0 > FORM_RECORDS_FILE= ./conf/streamMedia.input > TIMER_URL_COMPLETION = 5000 > TIMER_AFTER_URL_SLEEP = 2000 > > Could it be that there is some limitation on the length of the post > string that i am exceeding? (My string is a bit long) Or maybe the > length of each individual data input value? > It might be the case, however: 1. Please, make the first Get; 2. Make a capture using some sniffer like wireshark and see in the capture, if you are getting the POST-form by Get and that it contains all the required fields to add. You might be consulted at this point by somebody with experience in HTTP, HTML, etc. 3. Start with 2-3 initial parameters, you may not receive OK, but some response you may get. -- Truly, Robert Iakobashvili, Ph.D. ...................................................................... www.ghotit.com Assistive technology that understands you ...................................................................... |