• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP Basic auth
7NO_PROXY
8</keywords>
9</info>
10# Server-side
11<reply>
12<data>
13HTTP/1.1 200 OK
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Server: test-server/fake
16Content-Length: 4
17Content-Type: text/html
18
19boo
20</data>
21</reply>
22
23# Client-side
24<client>
25<server>
26http
27</server>
28<name>
29NO_PROXY test, with user name in URL
30</name>
31
32<setenv>
33no_proxy=%HOSTIP
34http_proxy=http://non-existing-host.haxx.se:3128/
35</setenv>
36<command>
37http://user:secret@%HOSTIP:%HTTPPORT/gimme/%TESTNUMBER
38</command>
39</client>
40
41# Verify data after the test has been "shot"
42<verify>
43<protocol>
44GET /gimme/%TESTNUMBER HTTP/1.1
45Host: %HOSTIP:%HTTPPORT
46Authorization: Basic dXNlcjpzZWNyZXQ=
47User-Agent: curl/%VERSION
48Accept: */*
49
50</protocol>
51</verify>
52</testcase>
53