⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test233

📁 THIS IS HTTP CURL Example
💻
字号:
<testcase><info><keywords>HTTPHTTP proxyHTTP Basic authHTTP proxy Basic authfollowlocation</keywords></info>## Server-side<reply><data>HTTP/1.1 302 OKDate: Thu, 09 Nov 2010 14:49:00 GMTServer: test-server/fake swscloseContent-Type: text/htmlFunny-head: yesyesLocation: http://goto.second.host.now/2330002Content-Length: 8Connection: closecontents</data><data2>HTTP/1.1 200 OKDate: Thu, 09 Nov 2010 14:49:00 GMTServer: test-server/fake swscloseContent-Type: text/htmlFunny-head: yesyesContent-Length: 9contents</data2><datacheck>HTTP/1.1 302 OKDate: Thu, 09 Nov 2010 14:49:00 GMTServer: test-server/fake swscloseContent-Type: text/htmlFunny-head: yesyesLocation: http://goto.second.host.now/2330002Content-Length: 8Connection: closeHTTP/1.1 200 OKDate: Thu, 09 Nov 2010 14:49:00 GMTServer: test-server/fake swscloseContent-Type: text/htmlFunny-head: yesyesContent-Length: 9contents</datacheck></reply>## Client-side<client><server>http</server> <name>HTTP, proxy, site+proxy auth and Location: to new host </name> <command>http://first.host.it.is/we/want/that/page/233 -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user testing:this --location</command></client>## Verify data after the test has been "shot"<verify><strip>^User-Agent:.*</strip><protocol>GET http://first.host.it.is/we/want/that/page/233 HTTP/1.1
Proxy-Authorization: Basic dGVzdGluZzp0aGlz
Authorization: Basic aWFtOm15c2VsZg==
Host: first.host.it.is
Pragma: no-cache
Accept: */*
Proxy-Connection: Keep-Alive

GET http://goto.second.host.now/2330002 HTTP/1.1
Proxy-Authorization: Basic dGVzdGluZzp0aGlz
Host: goto.second.host.now
Pragma: no-cache
Accept: */*
Proxy-Connection: Keep-Alive

</protocol></verify></testcase>

⌨️ 快捷键说明

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