test49

来自「harvest是一个下载html网页得机器人」· 代码 · 共 68 行

TXT
68
字号
## Server-side<reply><data>HTTP/1.1 302 OK swscloseLocation: ../moo.html/490002Date: Thu, 09 Nov 2010 14:49:00 GMTConnection: close</data><data2>HTTP/1.1 200 OK swscloseLocation: this should be ignoredDate: Thu, 09 Nov 2010 14:49:00 GMTConnection: closebody</data2><datacheck>HTTP/1.1 302 OK swscloseLocation: ../moo.html/490002Date: Thu, 09 Nov 2010 14:49:00 GMTConnection: closeHTTP/1.1 200 OK swscloseLocation: this should be ignoredDate: Thu, 09 Nov 2010 14:49:00 GMTConnection: closebody</datacheck></reply>## Client-side<client><server>http</server> <name>HTTP follow redirect with ../ </name> <command>http://%HOSTIP:%HOSTPORT/we/are/all/twits/49 -L</command></client>## Verify data after the test has been "shot"<verify><strip>^User-Agent:.*</strip><protocol>GET /we/are/all/twits/49 HTTP/1.1
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

GET /we/are/all/moo.html/490002 HTTP/1.1
User-Agent: curl/7.10 (i686-pc-linux-gnu) libcurl/7.10 OpenSSL/0.9.6c ipv6 zlib/1.1.3
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

</protocol></verify>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?