test4

来自「THIS IS HTTP CURL Example」· 代码 · 共 52 行

TXT
52
字号
<testcase><info><keywords>HTTPHTTP GETHTTP added headersHTTP replaced headers</keywords></info>## Server-side<reply><data>HTTP/1.1 200 OKDate: Thu, 09 Nov 2010 14:49:00 GMTServer: test-server/fake swscloseContent-Type: text/htmlFunny-head: yesyes</data></reply>## Client-side<client><server>http</server> <name>Replaced internal and added custom HTTP headers </name> <command> -H "extra-header: here" -H "Accept: replaced" http://%HOSTIP:%HTTPPORT/4</command></client>## Verify data after the test has been "shot"<verify><strip>^User-Agent:.*</strip><protocol>GET /4 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
extra-header: here
Accept: replaced

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

⌨️ 快捷键说明

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