Trying to simulate browser behavior.
Status: Alpha
Brought to you by:
coroberti
From: Pranav D. <pra...@gm...> - 2008-07-01 19:55:59
|
Hello, I am trying to simulate a browser behavior for accessing a front page (e.g. www.cnn.com). From traces I see that a few requests go over the same TCP connections (persistence) and in general there are a few TCP connections made for completely fetching the whole front page. I am trying to use FRESH_CONNECT to create another TCP connections. What I was expecting was that all URLs before the FRESH_CONNECT tag would go on the same connection and after the URL that has the FRESH_CONNECT tag a new connection would start. So I was expecting to see 2 GETs for the first TCP connection, 6 on the second TCP conn. and the rest on the third one. Basically, I was thinking of the URL list as sequential with conn. close in between. But that doesn't seem to be case. There are 3 TCP connections, but one has most of the GETs and the other 2 have one req. each (for which the tag is specified). So it seems like curl-loader loads all the URLS with it associated tags and then access them randomly. Is that correct? If so, is there a way to have a behavior similar to the one described above. config file ----------- BATCH_NAME=test_load CLIENTS_NUM_MAX=1 # Same as CLIENTS_NUM CLIENTS_NUM_START=1 CLIENTS_RAMPUP_INC=2 INTERFACE =eth1 NETMASK=16 IP_ADDR_MIN= 12.0.0.1 IP_ADDR_MAX= 12.0.16.250 #Actually - this is for self-control CYCLES_NUM=1 URLS_NUM=14 ########### URL SECTION #################################### URL=http://192.168.55.205/websites/cisco/www.cisco.com/cdc_content_elements/flash/home/sp_072307/spotlight/sp_webEx_tn.jpg URL=http://192.168.55.205/websites/cisco/www.cisco.com/cdc_content_elements/flash/home/sp_072307/spotlight/sp_CIN.swf FRESH_CONNECT=1 URL=http://192.168.55.205/websites/cisco/www.cisco.com/cdc_content_elements/flash/home/sp_072307/spotlight/sp_webEx.swf URL=http://192.168.55.205/websites/cisco/www.cisco.com/cdc_content_elements/flash/home/sp_072307/spotlight/sp_humanN_anthem_tn.jpg URL=http://192.168.55.205/websites/MOO/backfeed10.gif TIMER_AFTER_URL_SLEEP=2000-5000 URL=http://192.168.55.205/websites/MOO/bottom.gif URL=http://192.168.55.205/websites/MOO/style3.css URL=http://192.168.55.205/websites/MOO/topright.gif FRESH_CONNECT=1 URL=http://192.168.55.205/websites/MOO/rss_smaller.gif URL=http://192.168.55.205/websites/MOO/index.html.6 TIMER_AFTER_URL_SLEEP=2000-5000 URL=http://192.168.55.205/websites/cnn/www.cnn.com/.element/ssi/www/breaking_news/2.0/banner.html URL=http://192.168.55.205/websites/cnn/www.cnn.com/.element/ssi/auto/2.0/sect/MAIN/ftpartners/partner.people.html TIMER_AFTER_URL_SLEEP=2000-5000 URL=http://192.168.55.205/websites/cnn/www.cnn.com/.element/ssi/auto/2.0/sect/MAIN/ftpartners/partner.money.txt URL=http://192.168.55.205/websites/cnn/www.cnn.com/.element/img/2.0/global/icons/video_icon.gif |