trapping set-cookie with SSL

	I'd originally developped a simple application that uses cookie
callback function to retrieve cookie from a remote host.  After I'd added
SSL support (using openssl-0.9.6), the cookie callback function doesn't work
anymore: each time when cookie was received from remote host, the MIME
header parser intercepts it before the cookie callback function does.  Is
there anyway to restore the hook to cookie callback function when receiving
cookies using https request?  
	Attached below is the log that I got during the testing:
....................
HTSSLReader. SSL returned 0
HTSSLReader. 148 bytes read from socket 76
Read 1Kbytes
Host info... New mode is 1 for host 00CD4150
Host info... 00CD4150 already persistent
Net Object.. Persistent connection set ON succeeded
StreamStack. Constructing stream stack for message/rfc822 to www/present
Error....... Add   2    Severity: 8     Parameter: `OK' Where:
`HTTPNextState'
Host........ passing 17 bytes as consumed to 00EE0060
Host........ 131 bytes remaining
MIME header. Server: Microsoft-IIS/5.0
MIME header. Server: Microsoft-IIS/5.0
MIME header. Date: Fri, 23 Mar 2001 16:55:40 GMT
MIME header. Date: Fri, 23 Mar 2001 16:55:40 GMT
MIME header. Connection: close
MIME header. Connection: close
MIMEParser.. Close received...
MIME header. Content-type: text/html
MIME header. Content-type: text/html
Host........ passing 131 bytes as consumed to 00EE0060
Host........ 0 bytes remaining
HTSSLReader. SSL returned 0
HTSSLReader. 100 bytes read from socket 76
Read 1Kbytes
MIME header. Set-cookie: AS_TICKET=9853665401TtQnkkjdH; path=/
MIME header. Set-cookie: AS_TICKET=9853665401TtQnkkjdH; path=/
Cookie...... Path `/'
MIME header. Set-cookie: AM_STATE=; expires=Fri, 02-Jan-1970 00:00:00 GMT;
path=
/
MIME header. Set-cookie: AM_STATE=; expires=Fri, 02-Jan-1970 00:00:00 GMT;
path=
/
Cookie...... Unknown `Fri' with value ` 02-Jan-1970 00:00:00 GMT'
Cookie...... Path `/'
Building.... C-T stack from text/html to www/present
StreamStack. Constructing stream stack for text/html to www/present
Save file... Temporaray file `C:\Temp\blank.html'
....................
	Any suggestion is appreciated.


	Thanks.

Received on Friday, 23 March 2001 11:59:09 UTC