[Webtest] Adding User Agent and Http Headers in general
Dierk König
webtest@lists.canoo.com
Fri, 10 May 2002 17:01:57 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0016_01C1F844.6500A450
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Adding User Agent tocorrected,
thanx for posting
Mittie
-----Original Message-----
From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]On Behalf Of hal.stone@autodesk.com
Sent: Dienstag, 7. Mai 2002 22:18
To: webtest@lists.canoo.com
Subject: RE: [Webtest] Adding User Agent and Http Headers in general
config
<testSpec name="Visit all pages without update">
<config
host="localhost"
port="8080"
protocol="http"
basepath="frontnet"
summary="true"
verbose="true"
saveresponse="true"
resultpath="/tmp/results"
>
<header name="User-Agent" value="de-ch"/>
<header name="Accept-Language" value="Mozilla/4.0"/>
</config>
...
</testSpec>
Note: the value attributes need to be swapped in the example.
-----Original Message-----
From: Dierk König [mailto:Dierk.Koenig@canoo.com]
Sent: May 07, 2002 7:58 AM
To: webtest@lists.canoo.com
Subject: RE: [Webtest] Adding User Agent and Http Headers in general
Hiall,
You can now add http headers to the config.
The old config setup still works without change.
See the syntax ref for details.
Http headers are sent from your browser to the webapplication. They
reflect local
settings, like the language that the user prefers, the current browser
version, etc.
Webapplications sometimes use this information to display localized
information
or optimized pages.
With the new http header support you can test your application to deal
with this
information correctly.
have fun
Mittie
-----Original Message-----
From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]On Behalf Of Mike Los
Sent: Montag, 6. Mai 2002 19:33
To: webtest@lists.canoo.com
Subject: [Webtest] Adding User Agent to
Hi,
Please consider adding the ability to specify a user agent attribute
(e.g., userAgent) as part of the config element.
This would allow the test to include a specific user agent string;
e.g., <config userAgent="Mozilla/4.0" ...>
..
------=_NextPart_000_0016_01C1F844.6500A450
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Adding User Agent to</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3DISO-8859-1">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT color=3D#0000ff size=3D2><SPAN=20
class=3D989540015-10052002>corrected,</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN =
class=3D989540015-10052002>thanx for=20
posting</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN=20
class=3D989540015-10052002>Mittie</SPAN></FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B>=20
webtest-admin@lists.canoo.com =
[mailto:webtest-admin@lists.canoo.com]<B>On=20
Behalf Of </B>hal.stone@autodesk.com<BR><B>Sent:</B> Dienstag, 7. Mai =
2002=20
22:18<BR><B>To:</B> webtest@lists.canoo.com<BR><B>Subject:</B> RE: =
[Webtest]=20
Adding User Agent and Http Headers in general<BR><BR></FONT></DIV>
<DIV>
<TABLE cellPadding=3D5 width=3D0 bgColor=3D#ffffc0 border=3D0>
<TBODY>
<TR>
<TD align=3Dright><B>config</B></TD></TR>
<TR>
<TD>
<DIV class=3Dcode><<FONT =
color=3Dblue>testSpec</FONT> <FONT=20
color=3Ddarkgreen>name</FONT>=3D"<FONT=20
=
color=3Dbrown>Visit all pages without update</FONT>"&=
gt;<BR> =20
<<FONT color=3Dblue>config</FONT> <BR> =
<FONT=20
color=3Ddarkgreen>host</FONT>=3D"<FONT=20
color=3Dbrown>localhost</FONT>"<BR> =
<FONT=20
color=3Ddarkgreen>port</FONT>=3D"<FONT=20
color=3Dbrown>8080</FONT>"<BR> <FONT=20
color=3Ddarkgreen>protocol</FONT>=3D"<FONT=20
color=3Dbrown>http</FONT>"<BR> <FONT=20
color=3Ddarkgreen>basepath</FONT>=3D"<FONT=20
color=3Dbrown>frontnet</FONT>"<BR> =
<FONT=20
color=3Ddarkgreen>summary</FONT>=3D"<FONT=20
color=3Dbrown>true</FONT>"<BR> <FONT=20
color=3Ddarkgreen>verbose</FONT>=3D"<FONT=20
color=3Dbrown>true</FONT>"<BR> <FONT=20
color=3Ddarkgreen>saveresponse</FONT>=3D"<FONT=20
color=3Dbrown>true</FONT>"<BR> <FONT=20
color=3Ddarkgreen>resultpath</FONT>=3D"<FONT=20
color=3Dbrown>/tmp/results</FONT>"<BR> =
><BR> =20
<<FONT color=3Dblue>header</FONT> <FONT=20
color=3Ddarkgreen>name</FONT>=3D"<FONT=20
color=3Dbrown>User-Agent</FONT>" <FONT=20
color=3Ddarkgreen>value</FONT>=3D"<FONT=20
color=3Dbrown>de-ch</FONT>"/><BR> =
<<FONT=20
color=3Dblue>header</FONT> <FONT =
color=3Ddarkgreen>name</FONT>=3D"<FONT=20
color=3Dbrown>Accept-Language</FONT>" <FONT=20
color=3Ddarkgreen>value</FONT>=3D"<FONT=20
color=3Dbrown>Mozilla/4.0</FONT>"/><BR> =
</<FONT=20
color=3Dblue>config</FONT>><BR> ...<BR></<FONT =
=
color=3Dblue>testSpec</FONT>><BR></DIV></TD></TR></TBODY></TABLE></DIV=
>
<DIV><FONT face=3DArial color=3D#008080></FONT> </DIV>
<DIV><SPAN class=3D278401620-07052002><FONT face=3DArial =
color=3D#008080>Note: the=20
value attributes need to be swapped in the =
example.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B> Dierk K=F6nig=20
[mailto:Dierk.Koenig@canoo.com]<BR><B>Sent:</B> May 07, 2002 7:58=20
AM<BR><B>To:</B> webtest@lists.canoo.com<BR><B>Subject:</B> RE: =
[Webtest]=20
Adding User Agent and Http Headers in general<BR><BR></FONT></DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN=20
class=3D074424114-07052002>Hiall,</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN=20
class=3D074424114-07052002></SPAN></FONT> </DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN =
class=3D074424114-07052002>You can now=20
add http headers to the config.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN =
class=3D074424114-07052002>The old=20
config setup still works without change.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN=20
class=3D074424114-07052002></SPAN></FONT> </DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN =
class=3D074424114-07052002>See the=20
syntax ref for details.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN=20
class=3D074424114-07052002></SPAN></FONT> </DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN =
class=3D074424114-07052002>Http headers=20
are sent from your browser to the webapplication. They reflect=20
local</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN =
class=3D074424114-07052002>settings,=20
like the language that the user prefers, the current browser =
version,=20
etc.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN=20
class=3D074424114-07052002>Webapplications sometimes use this =
information to=20
display localized information</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN =
class=3D074424114-07052002>or optimized=20
pages.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN =
class=3D074424114-07052002>With the new=20
http header support you can test your application to deal with=20
this</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN =
class=3D074424114-07052002>information=20
correctly.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN=20
class=3D074424114-07052002></SPAN></FONT> </DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN =
class=3D074424114-07052002>have=20
fun</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff size=3D2><SPAN=20
class=3D074424114-07052002>Mittie</SPAN></FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff =
2px solid; MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B>=20
webtest-admin@lists.canoo.com =
[mailto:webtest-admin@lists.canoo.com]<B>On=20
Behalf Of </B>Mike Los<BR><B>Sent:</B> Montag, 6. Mai 2002=20
19:33<BR><B>To:</B> webtest@lists.canoo.com<BR><B>Subject:</B> =
[Webtest]=20
Adding User Agent to<BR><BR></FONT></DIV><!-- Converted from =
text/rtf format -->
<P><FONT size=3D2>Hi,</FONT> <BR><FONT size=3D2>Please consider =
adding the=20
ability to specify a user agent attribute (e.g., userAgent) as =
part of the=20
config element.</FONT> <BR><FONT size=3D2>This would allow the =
test to=20
include a specific user agent string; e.g., <config=20
userAgent=3D"Mozilla/4.0" ...></FONT> </P>
<P><FONT color=3D#0000ff size=3D2><SPAN=20
=
class=3D074424114-07052002> .. </SPAN></FONT></P></BLOCKQUOTE><=
/BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0016_01C1F844.6500A450--