applayerprotocols/httpservice/test/testdata/ini/httpclient.ini
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 12 Mar 2010 15:45:46 +0200
branchRCL_3
changeset 7 337070b4fa18
parent 0 b16258d2340f
child 39 c0c2f28ace9c
permissions -rw-r--r--
Revision: 201004 Kit: 201008

//
// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//
// httpclient.ini
//
// Script file for running HTTP Service API tests
//
//! @file			httpclient.ini
//


[TEST1]


##Use Case 1

TestCaseName= "HTTP CLIENT API GET"
Method=GET
Uri= http://127.0.0.1/index.html
RawRequest= GET /index.html HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawResponse= HTTP/1.1 200 OK\r\nDate: Tue, 03 Nov 2009 06:46:38 GMT\r\nContent-Type: text/plain\r\nContent-Length: 11\r\n\r\n
ResponseBody= Hello World
StatusCode= 200
ResponseFieldCount= 3
ResponseHeader1= Content-Length
ResponseHeader1ValueCount= 1
ResponseHeader1.Value1= 11
ResponseHeader2= Content-Type
ResponseHeader2ValueCount= 1
ResponseHeader2.Value1= text/plain
ResponseHeader3= Date
ResponseHeader3ValueCount= 1
ResponseHeader3.Value1= Tue, 03 Nov 2009 06:46:38 GMT

[TEST2]

TestCaseName= "HTTP CLIENT API GET2"
Method=GET
Uri= http://127.0.0.1/index2.html
RawRequest= GET /index2.html HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawResponse= HTTP/1.1 200 OK\r\nContent-Type: text/plain; charset=UTF-8\r\nContent-Length: 11\r\n\r\n
ResponseBody= Hello World
StatusCode= 200
ResponseFieldCount= 2
ResponseHeader1= Content-Length
ResponseHeader1ValueCount= 1
ResponseHeader1.Value1= 11
ResponseHeader2= Content-Type
ResponseHeader2ValueCount= 1
ResponseHeader2.Value1= text/plain
ResponseHeader2.Field1ParamCount= 1
ResponseHeader2.Field1.ParamName1= charset
ResponseHeader2.Field1.ParamValue1= UTF-8

[TEST3]

TestCaseName= "HTTP CLIENT API GET3"
Method=GET
Uri= http://127.0.0.1/index3.html
RawRequest= GET /index3.html HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawResponse= HTTP/1.1 200 OK\r\nCache-Control: private, max-age=0, max-stale=60\r\nContent-Type: text/plain; charset=UTF-8\r\nContent-Length: 11\r\n\r\n
ResponseBody= Hello World
StatusCode= 200
ResponseFieldCount= 3
ResponseHeader1= Content-Length
ResponseHeader1ValueCount= 1
ResponseHeader1.Value1= 11
ResponseHeader2= Content-Type
ResponseHeader2ValueCount= 1
ResponseHeader2.Value1= text/plain
ResponseHeader2.Field1ParamCount= 1
ResponseHeader2.Field1.ParamName1= charset
ResponseHeader2.Field1.ParamValue1= UTF-8
ResponseHeader3= Cache-Control
ResponseHeader3ValueCount= 1
ResponseHeader3.Value1= private
ResponseHeader3ParamCount= 2
ResponseHeader3.ParamName1= max-age
ResponseHeader3.ParamValue1= 0
ResponseHeader3.ParamName2= max-stale
ResponseHeader3.ParamValue2= 60


[TEST4]

TestCaseName= "HTTP CLIENT API GET4"
Method=GET
Uri= http://127.0.0.1/index4.html
RawRequest= GET /index4.html HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawResponse= HTTP/1.1 200 OK\r\nX-Content-Type-Options: nosniff\r\nContent-Type: text/plain; charset=UTF-8\r\nContent-Length: 11\r\n\r\n
ResponseBody= Hello World
StatusCode= 200
ResponseFieldCount= 3
ResponseHeader1= Content-Length
ResponseHeader1ValueCount= 1
ResponseHeader1.Value1= 11
ResponseHeader2= Content-Type
ResponseHeader2ValueCount= 1
ResponseHeader2.Value1= text/plain
ResponseHeader2.Field1ParamCount= 1
ResponseHeader2.Field1.ParamName1= charset
ResponseHeader2.Field1.ParamValue1= UTF-8
ResponseHeader3= X-Content-Type-Options
ResponseHeader3ValueCount= 1
ResponseHeader3.Value1= nosniff


[TEST5]

TestCaseName= "HTTP CLIENT API GET5"
Method=GET
Uri= http://127.0.0.1/index5.html
RawRequest= GET /index5.html HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawResponse= HTTP/1.1 200 OK\r\nCache-Control: private, max-age=0\r\nX-Content-Type-Options: nosniff\r\nContent-Type: text/plain; charset=UTF-8\r\nContent-Length: 11\r\n\r\n
ResponseBody= Hello World
StatusCode= 200
ResponseFieldCount= 4
ResponseHeader1= Content-Length
ResponseHeader1ValueCount= 1
ResponseHeader1.Value1= 11
ResponseHeader2= Content-Type
ResponseHeader2ValueCount= 1
ResponseHeader2.Value1= text/plain
ResponseHeader2.Field1ParamCount= 1
ResponseHeader2.Field1.ParamName1= charset
ResponseHeader2.Field1.ParamValue1= UTF-8
ResponseHeader3= Cache-Control
ResponseHeader3ValueCount= 1
ResponseHeader3.Value1= private
ResponseHeader3ParamCount= 1
ResponseHeader3.ParamName1= max-age
ResponseHeader3.ParamValue1= 0
ResponseHeader4= X-Content-Type-Options
ResponseHeader4ValueCount= 1
ResponseHeader4.Value1= nosniff

[TEST6]

TestCaseName= "HTTP CLIENT API GET6"
Method=GET
Uri= http://127.0.0.1/index6.html
RawRequest= GET /index6.html HTTP/1.1\r\nHost: 127.0.0.1\r\nAccept: text/xml, application/xml, application/xhtml+xml, text/html; q=0.9, text/plain; q=0.8, image/png, */*; q=0.5\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawResponse= HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 11\r\n\r\n
ResponseBody= ABCDE EFGHI
StatusCode= 200
RequestFieldCount= 1
RequestHeader1= Accept
RequestHeader1ValueCount= 7
RequestHeader1.Value1= text/xml
RequestHeader1.Value2= application/xml
RequestHeader1.Value3= application/xhtml+xml
RequestHeader1.Value4= text/html
RequestHeader1.Value4ParamCount= 1
RequestHeader1.Value4.ParamName1= q
RequestHeader1.Value4.ParamValue1= 0.9 
RequestHeader1.Value5= text/plain
RequestHeader1.Value5ParamCount= 1
RequestHeader1.Value5.ParamName1= q
RequestHeader1.Value5.ParamValue1= 0.8 
RequestHeader1.Value6= image/png
RequestHeader1.Value7= */*
RequestHeader1.Value7ParamCount= 1
RequestHeader1.Value7.ParamName1= q
RequestHeader1.Value7.ParamValue1= 0.5 
ResponseFieldCount= 2
ResponseHeader1= Content-Length
ResponseHeader1ValueCount= 1
ResponseHeader1.Value1= 11
ResponseHeader2= Content-Type
ResponseHeader2ValueCount= 1
ResponseHeader2.Value1= text/plain


[TEST7]
TestCaseName= "HTTP CLIENT API GET7"
Method=GET
Uri= http://127.0.0.1/testdl.txt
StatusCode= 200
RawRequest= GET /testdl.txt HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawResponse= HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 26\r\n\r\n
ResponseFileName= C:\HttpTest\httpservicetest\testdl.txt
ResponseFileNameStore= C:\HttpTest\httpservicetest\testdlstore.txt

[TEST8]
TestCaseName= "HTTP CLIENT API GET8"
Method=GET
Uri= http://127.0.0.1/testdl2.txt
StatusCode= 200
RawRequest= GET /testdl2.txt HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawResponse= HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 396500\r\n\r\n
ResponseFileName= C:\HttpTest\httpservicetest\testdl2.txt
ResponseFileNameStore= C:\HttpTest\httpservicetest\testdlstore2.txt

[TEST9]
TestCaseName= "HTTP CLIENT API GET9"
Method=GET
Uri= http://127.0.0.1/index9.html
StatusCode= 200
RawRequest= GET /index9.html HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawResponse= HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 0\r\n\r\n
ConnDisconnect= ETrue
ExpectedError= -36

[TEST10]
TestCaseName= "HTTP CLIENT API GET10"
Method=GET
Uri= http://127.0.0.1/index10.html
StatusCode= 200
RawRequest= GET /index10.html HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawResponse= HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 0\r\n\r\n
NoRetryOnDisconnect= ETrue
ConnDisconnect= ETrue
ExpectedError= -7377

[TEST11]
TestCaseName= "HTTP CLIENT API GET11"
Method=GET
Uri= http://127.0.0.1/testdl2.txt
StatusCode= 200
RawRequest= GET /testdl2.txt HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawResponse= HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 396500\r\n\r\n
ResponseFileName= C:\HttpTest\httpservicetest\testdl2.txt
ResponseFileNameStore= C:\HttpTest\httpservicetest\testdlstore3.txt
ResponseDynamicAndStatic= ETrue

[TEST12]
TestCaseName= "HTTP CLIENT API POST1"
Method=POST
Uri= http://127.0.0.1/post.html
StatusCode= 200
RawRequest= POST /post.html HTTP/1.1\r\nHost: 127.0.0.1\r\nContent-Type: text/plain\r\nContent-Length: 11\r\nUser-Agent: HTTP Client API Test\r\n\r\nHello World
RawResponse= HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\r\n
RequestBody= Hello World
RequestFieldCount= 1
RequestHeader1= Content-Type
RequestHeader1ValueCount= 1
RequestHeader1.Value1= text/plain

[TEST13]
TestCaseName= "HTTP CLIENT API POST2"
Method=POST
Uri= http://127.0.0.1/testdl2.txt
StatusCode= 200
RawRequest= POST /testdl2.txt HTTP/1.1\r\nHost: 127.0.0.1\r\nContent-Type: text/plain\r\nContent-Length: 396500\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawResponse= HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\r\n
RequestFieldCount= 1
RequestHeader1= Content-Type
RequestHeader1ValueCount= 1
RequestHeader1.Value1= text/plain
RequestFileName= C:\HttpTest\httpservicetest\testdl2.txt
RequestFileNameStore= C:\HttpTest\httpservicetest\testulstore2.txt

[TEST14]
TestCaseName= "HTTP CLIENT API GET12"
Method=GET
Uri= http://www.symbian.org/
StatusCode= 200
OnlineTest= ETrue
ProxyAddress= 10.29.23.12:9003

[TEST15]
TestCaseName= "HTTP CLIENT API GET13"
Method=GET
Uri= http://www.nokia.com/
StatusCode= 200
OnlineTest= ETrue
ProxyAddress= 10.29.23.12:9003

[TEST16]
TestCaseName= "HTTP CLIENT API GET14"
Method=GET
Uri= http://127.0.0.1/index17.html
RawRequest= GET /index17.html HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawResponse= HTTP/1.1 504 Gateway Timeout\r\nContent-Type: text/plain\r\nContent-Length: 0\r\n\r\n
StatusCode= 504
ResponseFieldCount= 2
ResponseHeader1= Content-Length
ResponseHeader1ValueCount= 1
ResponseHeader1.Value1= 0
ResponseHeader2= Content-Type
ResponseHeader2ValueCount= 1
ResponseHeader2.Value1= text/plain
ResponseTimeout= ETrue
ExpectedError= -7377

[TEST17]
TestCaseName= "HTTP CLIENT API GET15"
Method=GET
Uri= http://127.0.0.1/index18.html
RawRequest= GET /index18.html HTTP/1.1\r\nHost: 127.0.0.1\r\nAccept: */*\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawResponse= HTTP/1.1 301 Moved Permanently\r\nLocation: http://10.29.23.12/manual/index.html\r\n\r\n
StatusCode= 200
OnlineTest= ETrue
Redirection= ETrue

[TEST18]
TestCaseName= "HTTP CLIENT API GET16"
Method=GET
Uri= http://127.0.0.1/testdl2.txt
StatusCode= 200
RawRequest= GET /testdl2.txt HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawResponse= HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 396500\r\n\r\n
NotifyTransferProgress= ETrue
ResponseFileName= C:\HttpTest\httpservicetest\testdl2.txt
ResponseFileNameStore= C:\HttpTest\httpservicetest\testdlstore2.txt

[TEST19]
TestCaseName= "HTTP CLIENT API POST3"
Method=POST
Uri= http://127.0.0.1/testdl2.txt
StatusCode= 200
RawRequest= POST /testdl2.txt HTTP/1.1\r\nHost: 127.0.0.1\r\nContent-Type: text/plain\r\nContent-Length: 396500\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawResponse= HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\r\n
NotifyTransferProgress= ETrue
RequestFieldCount= 1
RequestHeader1= Content-Type
RequestHeader1ValueCount= 1
RequestHeader1.Value1= text/plain
RequestFileName= C:\HttpTest\httpservicetest\testdl2.txt
RequestFileNameStore= C:\HttpTest\httpservicetest\testulstore3.txt

[TEST20]
TestCaseName= "HTTP CLIENT API GET17"
Method=GET
Uri= http://127.0.0.1/index19.html
RawRequest= GET /index19.html HTTP/1.1\r\nHost: 127.0.0.1\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawResponse= HTTP/1.1 401 Authorization Required\r\nContent-Length: 0\r\nWWW-Authenticate: Basic realm=\r\r"Something"\r\n\r\n
RawEncodedAuthenticationRequest= GET /index19.html HTTP/1.1\r\nHost: 127.0.0.1\r\nAuthorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=\r\nUser-Agent: HTTP Client API Test\r\n\r\n
RawFinalResponse= HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 0\r\n\r\n
StatusCode= 200
ResponseFieldCount= 2
ResponseHeader1= Content-Length
ResponseHeader1ValueCount= 1
ResponseHeader1.Value1= 0
ResponseHeader2= Content-Type
ResponseHeader2ValueCount= 1
ResponseHeader2.Value1= text/plain
SetAuthentication= ETrue


[#Done]