I am using JSSE to write a TCP socket program.
The task i need to do is reveice a CONNECT response from a browser, ie
HTTPS.
And then my program need to communicate with the destinated server.
My program can named as Proxy Server,however, it is a simply proxy
server what it should do is: communicate between browser and server,
and log down all the data transfer, including the request and response
header.
So, would anyone can tell me how to solve the problem i mention above?
You may provide some program statement for me to follow, or
describe what the 3 bodies, client/proxy/server should do in each
timeslot.
Thank you.
p.s. It is very urgent
Rogan Dawes - 26 Oct 2004 15:23 GMT
> I am using JSSE to write a TCP socket program.
> The task i need to do is reveice a CONNECT response from a browser, ie
[quoted text clipped - 12 lines]
> Thank you.
> p.s. It is very urgent
Take a look at WebScarab (hosted on Sourceforge under the owasp
project). It does exactly what you describe. The relevant source code is
in src/org/owasp/webscarab/plugin/proxy/ConnectionHandler.java.
Regards,
Rogan
Alex Hunsley - 27 Oct 2004 13:37 GMT
> I am using JSSE to write a TCP socket program.
> The task i need to do is reveice a CONNECT response from a browser, ie
[quoted text clipped - 6 lines]
>
> So, would anyone can tell me how to solve the problem i mention above?
Yes; try writing some java code to solve the problem. That's how you
solve it.
> You may provide some program statement for me to follow, or
> describe what the 3 bodies, client/proxy/server should do in each
> timeslot.
timeslot?
> Thank you.
> p.s. It is very urgent
Writing 'urgent' doesn't buy you any favours round here.