W3C home > Mailing lists > Public > www-mobile@w3.org > June 2002

RE: HTTP request simulator

From: Keskar, Dhananjay V <dhananjay.v.keskar@intel.com>
Date: Tue, 4 Jun 2002 12:00:49 -0700
Message-ID: <B9ECACBD6885D5119ADC00508B68C1EA0619084E@orsmsx107.jf.intel.com>
To: "'Tayeb Lemlouma'" <Tayeb.Lemlouma@inrialpes.fr>, Stan@rga.com
Cc: www-mobile@w3.org
Hello, 
 
You can use the Java proxy provided in the Intel CC/PP Toolkit. 
The toolkit can be downloaded by via the "Software Download" link at :
 
http://developer.intel.com/pca/developernetwork/
<http://developer.intel.com/pca/developernetwork/> 
 
The Java proxy is intended to be installed on a Pocket PC device. 
However, once installed, you can easily use the .jar file on any other 
machine. 
 
One of the command-line parameter is a file-path name which contains
the device CC/PP profile in RDF/XML format. The proxy ensures that
the profile is added to the HTTP request per the CC/PP Exchange 
protocol specification.
 
As Tayeb mentions, you can then configure your browser to use this
proxy for HTTP requests. The proxy will then add the CC/PP profile to
all browser requests. The toolkit also includes a library (for Pocket PC)
that allows other programs and agents (e.g. GUI, monitors, etc.) to 
modify the XML profile on the fly. You can either use that or write 
something similar yourself. 
 
If you have any questions, let me know.
thanks
dvk 

-----Original Message-----
From: Tayeb Lemlouma [mailto:Tayeb.Lemlouma@inrialpes.fr]
Sent: Tuesday, June 04, 2002 1:25 AM
To: Stan@rga.com
Cc: www-mobile@w3.org
Subject: Re: HTTP request simulator



Hi Stan,

I don't know if there exists a http request simulator, but personally I
prefer to

open direct server connections (Using Java socket). For example, typing the

url: "htt://www.inrialpes.fr/opera/" in a browser is equivalent to open a
direct

connection with the server: "www.inrialpes.fr" using the port 80 and sending

an HTTP request with different headers. 

To visualize the server delivered content, and change the user request (for

example by adding new headers in its HTTP request), I think that the best 

way is to use a proxy. This third part between servers and the user agent
can

be easily implemented for your purpose. It will just send the user request
to

the corresponding server and the server answer to the client, and display

exchanged requests in its level.

 

To give an example, I past here the content of a browser request (IE 6.0
under

Windows 2000 profesional), after typing the URL: 

"http://opera.inrialpes.fr/people/Tayeb.Lemlouma/Profile.xml"

 

User agent Request (as it's displayed by the proxy):

 

GET http://opera.inrialpes.fr/people/Tayeb.Lemlouma/Profile.xml HTTP/1.0

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 

application/x-comet, application/vnd.ms-excel,

application/vnd.ms-powerpoint, application/msword, */*

Accept-Language: fr

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.0;

.NET CLR 1.0.2914)

Host: opera.inrialpes.fr

Proxy-Connection: Keep-Alive



 

Server answer (I give only the HTTP head of the answer):

 

HTTP/1.1 200 OK

Date: Tue, 04 Jun 2002 07:11:34 GMT

Server: Apache/1.3.20 (Unix)  (Red-Hat/Linux) mod_ssl/2.8.4

OpenSSL/0.9.6b DAV/1.0.2 PHP/4.0.6 mod_perl/1.24_01

Last-Modified: Tue, 12 Mar 2002 12:19:07 GMT

ETag: "80b2-f71-3c8df23b"

Accept-Ranges: bytes

Content-Length: 3953

Connection: close

Content-Type: text/xml

 

Using a proxy allows also to modify the server answer, for example if the

proxy adapt the content you will have to modify some headers (such as

the Content-Length and Content-Type) and send the new answer to the client.

 

I hope this will help.

 

Tayeb*

       

----------
Tayeb Lemlouma
 <http://www.inrialpes.fr/opera/people/Tayeb.Lemlouma/index.html>
http://www.inrialpes.fr/opera/people/Tayeb.Lemlouma/index.html
Opera project
National Research Institute in Computer Science and Control (INRIA
Rhône-Alpes, France )
Office B213, phone (+33) 04 76 61 52 81, Fax (+33) 04 76 61 52 07.

----- Original Message ----- 
From: <  <mailto:Stan@rga.com> Stan@rga.com>
To: <  <mailto:www-mobile@w3.org> www-mobile@w3.org>
Sent: Friday, May 31, 2002 11:01 PM
Subject: HTTP request simulator


> 
> Is there a HTTP request simulator that lets you choose various
> device/profile settings and hit a URL to see the output?
> 
> Thanks,
> Stan Wiechers
> 
> 
Received on Tuesday, 4 June 2002 15:01:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 April 2009 13:00:00 GMT