Re: Abnormal Behavior (status -902)

Could any one please suggest me a way out of this
problem? 

Thanks
Girish

--- Girish S <girishpage@yahoo.com> wrote:
> Hi,
> 
> I get status = -902 for a POST request on a URL. But
> this does not seem to be consistant. I get status =
> 200 if I try on the same URL with the same POST
> request just after a failure.
> I have also observed that GET method on this URL
> always returns status == 200 as expected.
> 
> Its really confusing why the library behaves like
> this. Can anyone help me to fix this issue?
> 
> Following is the scenario:
> 
> Libwww Version: 5.4.0
> 
> URL: http://localhost:8080/autoLogin.jsp
> 
> METHOD: POST
> 
> RESPNSE DATA EXPECTED:
> <?xml version="1.0"?>
> <Message>
> 	<event>LOGIN</event>
> 	<topic>SESSION</topic>
> 	<status>SUCCESS</status>
> <Message>
> 
> 
> === LIBWWW Trace ===
> 
> Request..... Created 00AD07E0
> Host........ Setting event timeout to 30000 ms
> ChunkStream. Chunk 00AD01D0 created with max size 0
> HTAccess.... Accessing document
> http://localhost:8080/autoLogin.jsp
> Net Before.. calling 00232D7C (request 00AD07E0,
> context 00000000)
> Net Before.. calling 00232D82 (request 00AD07E0,
> context 00000000)
> URL Tree.... did NOT find `w3c-AA'
> Credentials. verified
> Net Before.. calling 00232F62 (request 00AD07E0,
> context 00000000)
> URL Tree.... did NOT find `w3c-pep'
> Net Before.. calling 00232D76 (request 00AD07E0,
> context 00000000)
> Net Object.. 00AD1B60 created with hash 0
> Net Object.. starting request 00AD07E0 (retry=1)
> with
> net object 00AD1B60
> HTTP........ Looking for
> `http://localhost:8080/autoLogin.jsp'
> HTHost parse Looking up `localhost' on port 8080
> Event....... Created event 00AD17B0 with context
> 00AD1830, priority 20, and time
> out 30000
> Event....... Created event 00AD1770 with context
> 00AD1830, priority 20, and time
> out 30000
> Event....... Created event 00AD1730 with context
> 00AD1830, priority 20, and time
> out 30000
> Event....... Created event 00AD16F0 with context
> 00AD1830, priority 20, and time
> out 30000
> Event....... Created event 00AD16B0 with context
> 00AD1830, priority 20, and time
> out 30000
> Event....... Created event 00AD1670 with context
> 00AD1830, priority 20, and time
> out 30000
> Host info... added `localhost' with host 00AD1830 to
> list 00AD1AD0
> Host connect Grabbing lock on Host 00AD1830 with
> 00AD1B60
> Host info... Added Net 00AD1B60 (request 00AD07E0)
> to
> pipe on Host 00AD1830, 1 r
> equests made, 1 requests in pipe, 0 pending
> HTHost...... No ActivateRequest callback handler
> registered
> HTHost 00AD1830 going to state TCP_CHANNEL.
> HTHost 00AD1830 going to state TCP_DNS.
> Looking up localhost
> Looking up localhost
> DNS Add..... `localhost' with 1 home(s) to 00AD1470
> ParseInet... as port 8080 on 127.0.0.1 with 1 homes
> HTHost 00AD1830 going to state TCP_NEED_SOCKET.
> Socket...... Created 304
> Net Manager. Increasing active sockets to 1, 0
> persistent sockets
> Socket...... Turned off Nagle's algorithm
> Socket...... Non-blocking socket
> Channel..... Hash value is 36
> Channel..... Added 00AD10B0 to list 00AD1110
> Reader...... Created reader stream 01320068
> Socket...... TCP send buffer size is 8192 for socket
> 304
> Contacting localhost
> HTHost 00AD1830 going to state TCP_NEED_CONNECT.
> HTDoConnect. WOULD BLOCK `localhost'
> End
> Host Event.. WRITE passed to
> `http://localhost:8080/autoLogin.jsp'
> HTHost 00AD1830 going to state TCP_CONNECTED.
> HTHost 00AD1830 connected.
> Host connect Unlocking Host 00AD1830
> StreamStack. Constructing stream stack for
> text/x-http
> to */*
> Tee......... Created stream 00AD2C00 with resolver
> 003349D0
> HTTP........ Dumping response to `w3chttp.out'
> Tee......... Created stream 00AD2B80 with resolver
> 003349D0
> HTTP........ Dumping request to `w3chttp.out'
> HTTP........ Generating HTTP/1.x Request Headers
> HTTP........ Generating General Headers
> MIME........ Generating Entity Headers
> Buffer...... Flushing 00AD2FC0
> Write Socket 316 bytes written to 304
> Writing 1Kbytes
> Uploading... Holding 00AD1B10 for 2000 ms using time
> 00AD27A0
> Read Socket. WOULD BLOCK fd 304
> MessageLoop 1
> Host Event.. READ passed to
> `http://localhost:8080/autoLogin.jsp'
> Read Socket. 477 bytes read from socket 304
> Reading...
> Response.... Created 00AD2640
> Host info... New mode is 1 for host 00AD1830
> Net Manager. 1 active sockets, increasing persistent
> sockets to 1
> Host info... added host 00AD1830 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
> 01320068
> Host........ 454 bytes remaining
> MIME header. <null>:
> MIME header. HTTP/1.1: 200 OK
> MIME header. HTTP/1.1: 200 OK
> MIME header. Set-Cookie:
> JSESSIONID=D9F1646A9C440B57117DAC0A31707806; Path=/
> MIME header. Set-Cookie:
> JSESSIONID=D9F1646A9C440B57117DAC0A31707806; Path=/
> MIME header. Content-Type:
> text/html;charset=ISO-8859-1
> MIME header. Content-Type:
> text/html;charset=ISO-8859-1
> MIME header. Content-Length: 211
> MIME header. Content-Length: 211
> MIME header. Date: Thu, 13 Nov 2003 06:29:15 GMT
> MIME header. Date: Thu, 13 Nov 2003 06:29:15 GMT
> MIME header. Server: Apache Coyote/1.0
> MIME header. Server: Apache Coyote/1.0
> MIME header. Connection: close
> MIME header. Connection: close
> MIMEParser.. Close received...
> Host........ passing 243 bytes as consumed to
> 01320068
> Host........ 211 bytes remaining
> MIME........ FREEING....
> Error....... Add  62    Severity: 8     Parameter:
> `<Message>
> '       Where: `HTTPStatusStream'
> StreamStack. Constructing stream stack for
> www/unknown
> to */*
> Host........ passing 19 bytes as consumed to
> 01320068
> Host........ 192 bytes remaining
> HTTP Status. `localhost' is probably a broken 1.0
> server that doesn't understand
>  HEAD
> Read Socket. Target ERROR -1
> Host kill... Pipeline due to HTEvent_CLOSE event
> Host kill... Terminating net object 00AD1B60 from
> pipe
> line
> Error....... Add  59    Severity: 1     Parameter:
> `Unspecified'        Where: `
> HTLoadHTTP'
> HTTP Clean.. Called with status -902, net 00AD1B60
> Interrupted!
> HTTPGen..... ABORTING...
> HTTPRequest. ABORTING...
> Buffer...... ABORTING...
> FileWriter.. ABORTING...
> MIMERequest. ABORTING...
> Net Object.. Delete 00AD1B60 and call AFTER filters
> Host info... Remove 00AD1B60 from pipe
> Host Object. got close notifiation on socket 304
> Channel..... Semaphore set to 0 for channel 00AD10B0
> Channel..... Delete 00AD10B0 with semaphore 0,
> status
> -902
> Channel..... Delete input stream 01320068 from
> channel
> 
=== message truncated ===


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

Received on Monday, 17 November 2003 09:09:23 UTC