Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 58 lines (51 sloc) 2.146 kb
eb59f73 @cstar rfc2617 HTTP DIGEST authentication
cstar authored
1 <?xml version="1.0"?>
2 <!DOCTYPE tsung SYSTEM "@prefix@/share/@PACKAGE_NAME@/@DTD@">
3 <tsung loglevel="debug" dumptraffic="true" version="1.0">
4
5 <clients>
6 <client host="localhost" weight="1" maxusers="1000" use_controller_vm="true"/>
7 </clients>
8
9 <servers>
10 <server host="localhost" port="443" type="ssl"></server>
11 </servers>
12
13 <load>
14 <arrivalphase phase="1" duration="1" unit="second">
15 <users interarrival="1" unit="second"></users>
16 </arrivalphase>
17 </load>
18
19 <sessions>
20 <session name="http_test_1" probability="100" type="ts_http">
6464f42 @nniclausse change version 1.4.3a -> 1.5.0a (since the plugin API has changed a bit ...
nniclausse authored
21 <!--
22 1. First request return 401. We use dynvars to fetch nonce and realm
23 -->
24 <request>
25 <dyn_variable name="nonce" header="www-authenticate/nonce"/>
26 <dyn_variable name="realm" header="www-authenticate/realm"/>
eb59f73 @cstar rfc2617 HTTP DIGEST authentication
cstar authored
27 <http url="/digest" method="GET" version="1.1">
28 </http>
29 </request>
6464f42 @nniclausse change version 1.4.3a -> 1.5.0a (since the plugin API has changed a bit ...
nniclausse authored
30 <!--
31 2. This request will be authenticated. Type="digest" is important.
32 We use the nonce and realm values returned from the previous
33 If the webserver returns the nextnonce we set it to the nonce dynvar
34 for use with the next request.
35 Else it stays set to the old value
36 -->
eb59f73 @cstar rfc2617 HTTP DIGEST authentication
cstar authored
37 <request subst="true">
6464f42 @nniclausse change version 1.4.3a -> 1.5.0a (since the plugin API has changed a bit ...
nniclausse authored
38 <dyn_variable name="nonce" header="authentication-info/nextnonce"/>
eb59f73 @cstar rfc2617 HTTP DIGEST authentication
cstar authored
39 <http url="/digest" method="GET" version="1.1">
6464f42 @nniclausse change version 1.4.3a -> 1.5.0a (since the plugin API has changed a bit ...
nniclausse authored
40 <www_authenticate userid="user" passwd="passwd" type="digest" realm="%%_realm%%" nonce="%%_nonce%%"/>
41 <!--<www_authenticate userid="user" passwd="passwd" type="digest" realm="%%_realm%%" nonce="%%_nonce%%" nc="00000001" cnonce="%%ts_user_server:get_really_unique_id%%"/>-->
eb59f73 @cstar rfc2617 HTTP DIGEST authentication
cstar authored
42 </http>
43 </request>
44
6464f42 @nniclausse change version 1.4.3a -> 1.5.0a (since the plugin API has changed a bit ...
nniclausse authored
45 <!--
46 2. This request will still be authenticated
47 -->
48 <request subst="true">
49 <dyn_variable name="nonce" header="authentication-info/nextnonce"/>
eb59f73 @cstar rfc2617 HTTP DIGEST authentication
cstar authored
50 <http url="/digest" method="GET" version="1.1">
6464f42 @nniclausse change version 1.4.3a -> 1.5.0a (since the plugin API has changed a bit ...
nniclausse authored
51 <www_authenticate userid="user" passwd="passwd" type="digest" realm="%%_realm%%" nonce="%%_nonce%%"/>
eb59f73 @cstar rfc2617 HTTP DIGEST authentication
cstar authored
52 </http>
53 </request>
54 </session>
55 </sessions>
56
6464f42 @nniclausse change version 1.4.3a -> 1.5.0a (since the plugin API has changed a bit ...
nniclausse authored
57 </tsung>
Something went wrong with that request. Please try again.