Re: [OpenSTA-users] Can a script wait until the end of a HTTPBinary file download completes before
Brought to you by:
dansut
|
From: Dan D. <ddo...@me...> - 2007-05-22 13:27:49
|
Bernie Velivis wrote: ========= >The essense of what Dan said is correct however the proper syntax of the >command is 'SYNCHRONIZE REQUESTS'. You don't need to use ''Load >response_info' to get OpenSTA to wait until the binary file is downloaded >before proceeding with script execution. The only reason you would load >response_info body or header is if you wanted to examine the response and >keep in mind that with the version of OpenSTA you have, you are limited to >looking at the first 64K bytes of the response. The synch command will cause >script execution to pause until the entire file is downloaded (not just the >first 64K bytes) > >The following code fragment will do what you want and time the event as >well; > > Start Timer BINARYDOWNLOAD > > GET URI "http://www.iperformax.com/BernieVelivisResume.pdf HTTP/1.1" ON 1 >& > HEADER DEFAULT_HEADERS & > ,WITH {"Accept: */*", & > "Referer: http://www.iperformax.com/about.html", & > "Accept-Language: en-us", & > "Connection: Keep-Alive"} > > SYNCHRONIZE REQUESTS > > > End Timer BINARYDOWNLOAD Bernie, thanks for the catch on the syntax! Think I momentarily confused it with DISCONNECT ALL :) ...Dan Dan Downing www.mentora.com |