Re: problems using HTLoadToChunk()

>>>>> Steinar Bang <sb@metis.no>:

> Platform: SuSE linux 5.3, egcs 1.1.2-pre2, qt-2.x (CVS checkout),
>           libwww from CVS, gdb 4.17

> I have problems using HTLoadToChunk() in a small test program using
> libwww from a Qt GUI
>         http://www.metis.no/private/sb/misc/qtlibwww.tar.gz

[snip!]
> If I turn on the libwww trace in the main() program of my example,
> the request seems to go OK.  The same seems to be indicated by the
> web server log.

FWIW, here is the libwww trace from my test program:

Net After... Add 0x804cc10 with order 65535 tmplate `<null>' code 1 context (nil)
Fetching now!
Request..... Created 0x80758e0
ChunkStream. Chunk 0x8075a38 created with max size 0
HTAccess.... Accessing document http://abel.metis.no
Net Before.. calling 0x40446548 (request 0x80758e0, context (nil))
Net Before.. calling 0x40446a88 (request 0x80758e0, context (nil))
URL Tree.... did NOT find `w3c-AA'
Credentials. verified
Net Before.. calling 0x4047765c (request 0x80758e0, context (nil))
URL Tree.... did NOT find `w3c-pep'
Net Before.. calling 0x40446484 (request 0x80758e0, context (nil))
Net Object.. 0x8075d60 created with hash 0
Net Object.. starting request 0x80758e0 (retry=1) with net object 0x8075d60
HTTP........ Looking for `http://abel.metis.no'
HTHost parse Looking up `abel.metis.no' on port 80
Event....... Created event 0x8075f90 with context 0x8075ec8, priority 20, and timeout -1
Event....... Created event 0x8075fa8 with context 0x8075ec8, priority 20, and timeout -1
Event....... Created event 0x8075fc0 with context 0x8075ec8, priority 20, and timeout -1
Host info... added `abel.metis.no' with host 0x8075ec8 to list 0x8075810
Host connect Grabbing lock on Host 0x8075ec8 with 0x8075d60
Host info... Added Net 0x8075d60 (request 0x80758e0) to pipe on Host 0x8075ec8, 1 requests made, 1 requests in pipe, 0 pending
HTHost...... No ActivateRequest callback handler registered
HTHost 0x8075ec8 going to state TCP_CHANNEL.
HTHost 0x8075ec8 going to state TCP_DNS.
DNS Add..... `abel.metis.no' with 1 home(s) to 0x8075b78
ParseInet... as port 80 on 193.90.64.1 with 1 homes
HTHost 0x8075ec8 going to state TCP_NEED_SOCKET.
Socket...... Created 6
Net Manager. Increasing active sockets to 1, 0 persistent sockets
Socket...... Turned off Nagle's algorithm
Socket...... Non-blocking socket
Channel..... Hash value is 6
Channel..... Added 0x8078128 to list 0x8076070
Reader...... Created reader stream 0x8078158
Socket...... TCP send buffer size is 32767 for socket 6
HTHost 0x8075ec8 going to state TCP_NEED_CONNECT.
HTDoConnect. WOULD BLOCK `abel.metis.no'
Host Event.. WRITE passed to `http://abel.metis.no'
HTHost 0x8075ec8 going to state TCP_CONNECTED.
HTHost 0x8075ec8 connected.
Host connect Unlocking Host 0x8075ec8
StreamStack. Constructing stream stack for text/x-http to www/present
Tee......... Created stream 0x80882b0 with resolver 0x404b1b0c
HTTP........ Dumping response to `w3chttp.out'
Tee......... Created stream 0x8088568 with resolver 0x404b1b0c
HTTP........ Dumping request to `w3chttp.out'
HTTP........ Generating HTTP/1.x Request Headers
HTTP........ Generating General Headers
Buffer...... Flushing 0x8080178
Write Socket 139 bytes written to 6
Read Socket. WOULD BLOCK fd 6
Host Event.. READ passed to `http://abel.metis.no'
Read Socket. 1094 bytes read from socket 6
Response.... Created 0x8088790
Host info... New mode is 1 for host 0x8075ec8
Net Manager. 1 active sockets, increasing persistent sockets to 1
Host info... added host 0x8075ec8 as 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 0x8078158
Host........ 1077 bytes remaining 
MIME header. Date: Tue, 17 Aug 1999 14:27:22 GMT
MIME header. Server: Apache/1.3.6 (Unix)
MIME header. Last-Modified: Thu, 20 May 1999 11:53:28 GMT
MIME header. ETag: "d4f9c-32a-3743f7b8"
MIME header. Accept-Ranges: bytes
MIME header. Content-Length: 810
MIME header. Keep-Alive: timeout=15, max=100
MIMEParser.. Timeout after 15 secs
MIMEParser.. Max 100 requests pr connection
MIME header. Connection: Keep-Alive
MIMEParser.. HTTP/1.0 Keep Alive ignored
MIME header. Content-Type: text/html
Building.... C-T stack from text/html to www/present
StreamStack. Constructing stream stack for text/html to www/present
Save File... No file name - black hole
Building.... Content-Decoding stack
Building.... Transfer-Decoding stack
Host........ passing 267 bytes as consumed to 0x8078158
Host........ 810 bytes remaining 
Host........ passing 810 bytes as consumed to 0x8078158
Host........ 0 bytes remaining 
Read Socket. Target returns 200
HTTP Clean.. Called with status 200, net 0x8075d60
Net Object.. Delete 0x8075d60 and call AFTER filters
Host info... Remove 0x8075d60 from pipe
Host Object. keeping persistent socket 6
Channel..... Delete 0x8078128 with semaphore 1, status 200
Channel..... Delete input stream 0x8078158 from channel 0x8078128
MIME........ FREEING....
Channel..... Delete input stream 0x8078158 from channel 0x8078128
Channel..... Semaphore decreased to 0 for channel 0x8078128
Host........ Object 0x8075ec8 going idle...
Net Object.. Check for pending Net objects
Net Object.. Freeing object 0x8075d60
Net After... calling 0x40446b44 (request 0x80758e0, response 0x8088790, status 200, context (nil))
Net After... calling 0x40477700 (request 0x80758e0, response 0x8088790, status 200, context (nil))
Net After... calling 0x40446670 (request 0x80758e0, response 0x8088790, status 200, context (nil))
Load End.... OK: `http://abel.metis.no'
Net After... calling 0x804cc10 (request 0x80758e0, response 0x8088790, status 200, context (nil))
Request..... Delete 0x80758e0
Request..... Deleting dangling output stream
Chunkstream. FREEING...
Response.... Delete 0x8088790
WWWLibTerm.. Cleaning up LIBRARY OF COMMON CODE
Net Object.. Kill ALL Net objects!!!
Channel..... Delete 0x8078128 with semaphore 0, status 0
Channel..... Delete input stream 0x8078158 from channel 0x8078128
Channel..... Delete input stream 0x8078158 from channel 0x8078128
Socket read. FREEING....
Socket write FREEING....
Net Manager. Decreasing active sockets to 0, 1 persistent sockets
Channel..... Deleted 0x8078128, socket 6
Event....... Deleted event (nil)
Event....... Deleted event (nil)
Event....... Deleted event (nil)

Received on Tuesday, 17 August 1999 10:29:18 UTC