ssl tunnel through proxy and content-length

When I use jdk1.4.0 and get to openConnection(),

should the 'CONNECT server:443 HTTP/1.1' be sent

with a 'Content-Length:' of

o Whatever I had set with setRequestProperty

o 0 (zero)

o or not sent at all?

I suspect (via linux strace) that the JDK is going for the first

option, but I know of at least one proxy server which will actually

wait for that much content to follow, even though it's part of the

HTTPS request and not part of the tunneling conversation.

I think this is either a bug in the JDK, or a bug in the proxy server,

and would appreciate any thoughts on this.

Regards,

Billy.

[684 byte] By [billy_taylor] at [2007-9-27 17:08:54]
# 1
I meant to add this request methos was POST
billy_taylor at 2007-7-6 11:42:56 > top of Java-index,Archived Forums,Java Programming...