W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2008

Building a proxy server

From: Ashish Parajuli <aparajuli@d2hawkeye.com>
Date: Wed, 16 Jan 2008 15:08:28 +0545
To: <www-lib@w3.org>
Message-ID: <CHI1SIMR001s8BryWcG00038fed@CHI1SIMR001.atlarge.net>
I am trying to build a HTTP proxy. The listening and accepting module is
already ready. I want to use libwww to get the request (data) from the
client, make some modification to it and send it to the destination server. 

 

1.	A live socket descriptor is given after a TCP connection from the
client is established.
2.	I need to get HTTP data from this descriptor using libwww. (I want
all the chunk handling and parsing of headers to be done by libwww)
3.	I need to parse this data, do some modification to it and send it to
the destination server.
4.	I don't need to tamper any HTTP headers only the data portion needs
to be modified.
5.	I also need to create my own request and send it to the destination
server with anything being sent by the client.

 

How do I use a live socket and bind it with libwww and get data to and from
client and server.

 

Any help will be highly appreciated.

 

And does anybody use libwww nowadays I don't seem to find any posts in the
mailing list. Has libwww become obsolete. 
 
 
PRIVACY NOTICE

This email and any attachments may be confidential and/or privileged. Use of the information contained in this email by anyone other than the intended recipient is strictly prohibited. If you have received this email in error, please notify the sender by replying to this message and delete this email.
Received on Wednesday, 16 January 2008 09:25:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 16 January 2008 09:25:23 GMT