• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6HTTP Digest auth
7followlocation
8</keywords>
9</info>
10
11# Server-side
12<reply>
13<data>
14HTTP/1.1 302 *MOVED* swsclose swsbounce
15Server: Microsoft-IIS/6.0
16Location: /mooooo/177
17Content-Type: text/html; charset=iso-8859-1
18
19</data>
20</reply>
21
22# Client-side
23<client>
24#
25<server>
26http
27</server>
28<features>
29crypto
30</features>
31 <name>
32HTTP POST --digest to server doing a 302-location response
33 </name>
34 <command>
35http://%HOSTIP:%HTTPPORT/177 -u auser:apasswd --digest -d "junkelijunk"
36</command>
37</client>
38
39# Verify data after the test has been "shot"
40<verify>
41<protocol>
42POST /177 HTTP/1.1
43Host: %HOSTIP:%HTTPPORT
44User-Agent: curl/%VERSION
45Accept: */*
46Content-Length: 0
47Content-Type: application/x-www-form-urlencoded
48
49</protocol>
50</verify>
51</testcase>
52