W3C home > Mailing lists > Public > www-jigsaw@w3.org > March to April 2000

Re: How to make a dummy request and reply

From: Yves Lafon <ylafon@w3.org>
Date: Thu, 23 Mar 2000 11:32:08 +0100 (MET)
To: Lan Bin <lanb@comp.nus.edu.sg>
cc: www-jigsaw@w3.org
Message-ID: <Pine.GSO.4.21.0003231128270.8498-100000@tarantula.inria.fr>
On Thu, 23 Mar 2000, Lan Bin wrote:

> Hi,All!
> 
> I am making one filter, which prefetch the next
> request into the cache for the server. 
> I need to make a dummy request/reply. Could any1
> can help me? How to make it?

very easy, using telnet.
Here is an example:

GET /icons/image.gif HTTP/1.1
Connection: keep-alive
Date: Thu, 23 Mar 2000 10:29:45 GMT
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png
Accept-Charset: iso-8859-1,*,utf-8
Accept-Encoding: gzip
Accept-Language: fr,en
Host: tarantula.inria.fr:8007
User-Agent: TelnetForEver/1.0

just feed that (with the extra \r\n after the headers, and you have it. Of
course you will have to modify the request in the GET and the
Host: header.
For a proxy request, just replace the Host, you can also use the complete
URI in the GET, but Host should also be there and match the host of the
URI in the GET.
Regards,

      /\          - Yves Lafon - World Wide Web Consortium - 
  /\ /  \        Architecture Domain - Jigsaw Activity Leader
 /  \    \/\    
/    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org    
Received on Thursday, 23 March 2000 05:32:29 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:07 UTC