Re: a few questions.. huge load testing job
Status: Alpha
Brought to you by:
coroberti
From: aaron s. <bei...@gm...> - 2008-01-04 23:17:17
|
also, one other thing. the domain www.lvr.com is a hosts file entry that points to 206.188.30.110.. On Jan 4, 2008 3:16 PM, aaron smith <bei...@gm...> wrote: > Hello Robert. > > So I finally got around to testing this all out.. > > I've got curl-loader built from SVN. I've attached the configuration file > I'm using for curl-loader(amf.conf). A wireshark session capture of just > one request. And the binary file that I'm trying to attach in the body. > > Basically what's happening is the content from the file is not being put > into the body. But It does grab the content-length correctly. It seems to me > everything is ok, except the binary data isn't being attached.. > > Can you check out what I've attached and see if you see anything obvious > that is incorrect? > > Thanks much. > Aaron > > > ---------- Forwarded message ---------- > From: Robert Iakobashvili <cor...@gm...> > Date: Dec 16, 2007 4:54 AM > Subject: Re: a few questions.. huge load testing job > To: web loading and performance testing tool < > cur...@li...> > > > Aaron, > > On Dec 10, 2007 7:04 PM, aaron smith < bei...@gm...> > wrote: > > > Thanks Robert! I''ll be trying this out sometime today or tomorrow and > > let you know what happens.. > > > > > > > POST //amfphp/gateway.php HTTP/1.1 > > > Accept: */* > > > Accept-Language: en-US > > > Referer: http://www.petmoustache.com/global/swf/main.swf > > > x-flash-version<http://www.petmoustache.com/global/swf/main.swfx-flash-version>: > > > 9,0,115,0 > > > Content-Type: application/x-amf > > > Content-Length: 55561 > > > Accept-Encoding: gzip, deflate > > > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) > > > Host: petmoustache.com > > > Connection: Keep-Alive > > > Cache-Control: no-cache > > > Cookie: __utma=110968324.1943311580.1197250082.1197250082.1197250082.1 > > > ; > > > __utmb=110968324; __utmc=110968324; > > > __utmz=110968324.1197250082.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); > > > PHPSESSID=70624e053d197b61ce5e704d45f1a5ff > > > > > > ----------------------------------------------------------------------------- > > > body > > > ----------------------------------------------------------------------------- > > > > > > > > > This is the POST, which we see. > > > > > > The url to be used seems to be: > > > http://petmoustache.com/amfphp/gateway.php > > > > > > The essential header to be added via HEADER-tag up to me are: > > > > > > HEADER="Referer: http://www.petmoustache.com/global/swf/main.swf " > > > HEADER="x-flash-version: 9,0,115,0" > > > HEADER="Content-Type: application/x-amf" > > > HEADER="Cache-Control: no-cache" > > > HEADER="Cookie: > > > __utma=110968324.1943311580.1197250082.1197250082.1197250082.1 ; > > > __utmb=110968324; __utmc=110968324; > > > __utmz=110968324.1197250082.1.1.utmccn= > > > (direct)|utmcsr=(direct)|utmcmd=(none); > > > PHPSESSID=70624e053d197b61ce5e704d45f1a5ff" > > > > > > Note, that Cookie is a separate story, which is generated per user and > > > > > > it depends on > > > the policy of you web-server. Y may need to play with it or without > > > it, etc. > > > > > > What the POST is doing is actually uploading some binary file. > > > We have such an example for the PUT method, namely put.conf. > > > > > > Your url section may be similar: > > > > > > -------------------------------------------------------------------------------------------------------- > > > URL= http://petmoustache.com/amfphp/gateway.php > > > URL_SHORT_NAME="POST-file" > > > REQUEST_TYPE=POST > > > UPLOAD_FILE=Atterntion!!!** place a path to your file from > > > curl-loader, like ./myfile*** > > > HEADER="Referer: http://www.petmoustache.com/global/swf/main.swf" > > > HEADER="x-flash-version: 9,0,115,0" > > > HEADER="Content-Type: application/x-amf" > > > HEADER="Cache-Control: no-cache" > > > HEADER="Cookie: > > > __utma=110968324.1943311580.1197250082.1197250082.1197250082.1; > > > __utmb=110968324; __utmc=110968324; > > > __utmz=110968324.1197250082.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); > > > > > > PHPSESSID=70624e053d197b61ce5e704d45f1a5ff" > > > TIMER_URL_COMPLETION = 0 # In msec. When positive, Now it is enforced > > > by cancelling url fetch on timeout > > > TIMER_AFTER_URL_SLEEP =3000 > > > > > > Please, run that (sure on linux) with a single client > > > and a single cycle with -v and -u options also added (verbose > > > debugging) to curl-loader > > > command line (learn for -f <batch file> and other options) and > > > wireshark capture to see, if there are any problems. > > > > > > If it works, start increasing, etc. > > > If not, send to me: > > > a) the log of curl-loader <your-batch-name>.log; > > > b) the wireshark capture. > > > > > > > Better late, than nether. > Occasionally, I seen, that our checks do not allow POST-ing > of a binary file without any POST-form. > > The error message will be something like: error: post_data is NULL. > > Therefore, I have committed a small patch. > Y can either checkout the latest svn code, or apply the patch attached. > > Best wishes. > > -- > > Sincerely, > Robert Iakobashvili, > coroberti %x40 gmail %x2e com > ........................................................... > http://curl-loader.sourceforge.net > An open-source web testing and traffic generation. > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > curl-loader-devel mailing list > cur...@li... > https://lists.sourceforge.net/lists/listinfo/curl-loader-devel > > > |