W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2001

SSL and POST problem

From: <Torsten_Pestotnik@esser-germany.com>
Date: Thu, 10 May 2001 10:23:54 -0400 (EDT)
To: www-lib@w3.org
Message-ID: <OFFE9A8CB9.FCDE87A5-ON41256A48.00530BB7@novar.com>
Hi all,

I have the same problem as Sven. I have a program that allows posting to a
URL. When I use regular http this is no problem. But when I use https, then
the application hangs after HTPostAnchor.

The output is:

HTSSLContext Created context 0x8056da8Transport... Adding `secure_tcp'
Protocol.... Adding `https'
Net Before.. Add 0x4004fbf0 with order 49150 tmplate `https://*' context (nil)
Net Before.. Add 0x40081dc0 with order 49150 tmplate `https://*' context (nil)
Net After... Add 0x4004fc70 with order 32767 tmplate `https://*' code -401 context (nil)
Net After... Add 0x4004fc70 with order 32767 tmplate `https://*' code -418 context (nil)
Net After... Add 0x40081e80 with order 32767 tmplate `https://*' code 1 context (nil)
Net After... Add 0x4004f910 with order 32767 tmplate `https://*' code 301 context (nil)
Net After... Add 0x4004f910 with order 32767 tmplate `https://*' code 302 context (nil)
Net After... Add 0x4004f910 with order 32767 tmplate `https://*' code 303 context (nil)
Net After... Add 0x4004f910 with order 32767 tmplate `https://*' code 307 context (nil)
Net After... Add 0x4004fad0 with order 32767 tmplate `https://*' code 305 context (nil)
Net After... Add 0x80492b0 with order 65535 tmplate `<null>' code 1 context (nil)
Host........ Setting event timeout to 10000 ms
Request..... Created 0x8057528
ChunkStream. Chunk 0x80580e8 created with max size 0
HTAccess.... Accessing document https://something
Net Before.. calling 0x4004fbf0 (request 0x8057528, context (nil))
URL Tree.... did NOT find `w3c-AA'
Credentials. verified
Net Before.. calling 0x4004f5e0 (request 0x8057528, context (nil))
Net Before.. calling 0x4004f4c0 (request 0x8057528, context (nil))
Net Before.. calling 0x40081dc0 (request 0x8057528, context (nil))
URL Tree.... did NOT find `w3c-pep'
Net Object.. 0x8058230 created with hash 0
Net Object.. starting request 0x8057528 (retry=1) with net object 0x8058230
HTTP........ Looking for `https://something'
HTHost parse Looking up `194.231.38.230' on port 443
Event....... Created event 0x8058e58 with context 0x8058fb8, priority 20, and timeout 10000
Event....... Created event 0x8058e70 with context 0x8058fb8, priority 20, and timeout 10000
Event....... Created event 0x8059068 with context 0x8058fb8, priority 20, and timeout 10000
Host info... added `194.231.38.230' with host 0x8058fb8 to list 0x8058e30
Host connect Grabbing lock on Host 0x8058fb8 with 0x8058230
Host info... Added Net 0x8058230 (request 0x8057528) to pipe on Host 0x8058fb8, 1 requests made, 1 requests in pipe, 0 pending
HTHost...... No ActivateRequest callback handler registered
HTHost 0x8058fb8 going to state TCP_CHANNEL.
HTHost 0x8058fb8 going to state TCP_DNS.
ParseInet... as port 443 on 194.231.38.230 with 1 homes
HTHost 0x8058fb8 going to state TCP_NEED_SOCKET.
Socket...... Created 3
Net Manager. Increasing active sockets to 1, 0 persistent sockets
Socket...... Turned off Nagle's algorithm
Socket...... Blocking socket
Channel..... Hash value is 3
Channel..... Added 0x80591c0 to list 0x80591b0
HTSSLWriter. Created 0x8061220
Socket...... TCP send buffer size is 65535 for socket 3
Contacting 194.231.38.230
HTHost 0x8058fb8 going to state TCP_NEED_CONNECT.
HTHost 0x8058fb8 going to state TCP_CONNECTED.
HTHost 0x8058fb8 connected.
Host connect Unlocking Host 0x8058fb8
HTTP........ Force flush on preemptive load
StreamStack. Constructing stream stack for text/x-http to */*
Tee......... Created stream 0x8071510 with resolver 0x400bc2f0
HTTP........ Dumping response to `w3chttp.out'
Tee......... Created stream 0x8071538 with resolver 0x400bc2f0
HTTP........ Dumping request to `w3chttp.out'
Host Event.. FLUSH passed to `https://something`
HTTP........ Generating HTTP/1.x Request Headers
HTTP........ Generating General Headers
MIME........ Generating Entity Headers
Buffer...... Flushing 0x8061238
HTSSL New... Created new SSL Object 0x8071670
HTSSL....... Setting up 0x8071670 on socket 3
HTSSL....... New reference count = 1
SSL_connect: before/connect initialization
SSL_connect: SSLv2/v3 write client hello A
SSL_connect: SSLv3 read server hello A
depth = 0 /C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=l
verify error: num=18:self signed certificate
verify return: 1
depth = 0 /C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=l
verify return: 1
SSL_connect: SSLv3 read server certificate A
SSL_connect: SSLv3 read server key exchange A
SSL_connect: SSLv3 read server done A
SSL_connect: SSLv3 write client key exchange A
SSL_connect: SSLv3 write change cipher spec A
SSL_connect: SSLv3 write finished A
SSL_connect: SSLv3 flush data
SSL_connect: SSLv3 read finished A
HTSSLWriter. SSL returned 0
HTSSLWriter. 301 bytes written to 3
Writing 1Kbytes
Uploading... Holding 0x8058e08 for 2000 ms using time 0x8082a18
HTSSL New... Found SSL 0x8071670 with sd =  3
HTSSL....... New reference count = 2
HTSSLReader. SSL returned 0
HTSSLReader. 25 bytes read from socket 3
Reading...
Response.... Created 0x8082688
Host info... New mode is 1 for host 0x8058fb8
Net Manager. 1 active sockets, increasing persistent sockets to 1
Host info... added host 0x8058fb8 as persistent
Net Object.. Persistent connection set ON succeeded
StreamStack. Constructing stream stack for message/x-rfc822-cont to www/debug
Host........ passing 23 bytes as consumed to 0x8059200
Host........ 2 bytes remaining
Host........ passing 2 bytes as consumed to 0x8059200
Host........ 0 bytes remaining
MIME........ FREEING....
HTSSLReader. CONTINUE
HTTP........ Continuing

after that the application hangs.
In the w3chttp.out file the following output is generated:

POST /servlet/ HTTP/1.1
Accept: */*
TE: trailers
Expect: 100-continue
Host: 194.231.38.230
User-Agent: eSafetyNetClient/0.1a libwww/5.3.2
Connection: TE,Keep-Alive
Date: Thu, 10 May 2001 14:16:06 GMT
Content-Length: 10
Content-Type: text/plain

HTTP/1.1 100 Continue

Sven, did you solve the problem ??


Bye,

Torsten





***************************************************************************
THIS E-MAIL AND ANY ATTACHED FILES ARE CONFIDENTIAL, PROTECTED BY COPYRIGHT
AND MAY BE LEGALLY PRIVILEGED.  If you are not the intended addressee or
have received the e-mail in error, any use of this e-mail or any copying,
distribution or other dissemination of it is strictly prohibited. If you
have received this transmission in error, please notify the sender
immediately and then delete the e-mail. E-mail cannot be guaranteed to be
secure, error free or free from viruses. Neither the sending company nor
its group of companies accepts any liability whatsoever for any loss or
damage which may be caused as a result of the transmission of this message
by e-mail. If verification is required, please request a hard copy version.
***************************************************************************
Received on Thursday, 10 May 2001 10:53:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:39 GMT