Re: Problems with POST

In our previous episode, Henrik Frystyk Nielsen said:
> 
> At 17:51 7/21/98 +0200, jose.kahan@w3.org wrote:
> >Henrik,
> >
> >POST seems to be broken:
> 
> Hmm, do you know where I can test this - I can't reqach your server.
> ANybody else seen this problem?

Yes. In fact, my server accepts POST queries, but doesn't have any 
CGI script associated to it. But this is not the problem, as the request
is not even being sent to the server. I had the same problem using other
post sites. Here are some interesting URLs for testing this:

	http://www.research.digital.com/nsl/formtest/home.html
	http://www.research.digital.com/nsl/formtest/html/UserInput.html


> 
> What is the trace if you run it with the -vsop command line option?
>

I'm attaching it hereafter.

Thanks for the quick response,

-Jose

=============================================

./w3c -vosp -post http://tuvalu:6060/test.html -form "RECORD=ID" "COL1=a" "COL2=b" "COL4=d"
HTSignal.... Ignoring SIGPIPE
Host........ Setting event timeout to 10000 ms
HTAccess.... Accessing document http://tuvalu:6060/test.html
Net Before.. calling ef755e94 (request 255c0, context 0)
Net Before.. calling ef755da8 (request 255c0, context 0)
Net Before.. calling ef756cc8 (request 255c0, context 0)
URL Tree.... did NOT find `w3c-AA'
Credentials. verified
Net Before.. calling ef7594bc (request 255c0, context 0)
URL Tree.... did NOT find `w3c-pep'
Net Before.. calling ef755c04 (request 255c0, context 0)
Net Object.. 2c260 created with hash 0
Net Object.. starting request 255c0 (retry=1) with net object 2c260
HTTP........ Looking for `http://tuvalu:6060/test.html'
HTDoConnect. Looking up `tuvalu:6060'
Event....... Created event 2a590 with context 2cd38, priority 20, and timeout 10000
Event....... Created event 2a5b0 with context 2cd38, priority 20, and timeout 10000
Event....... Created event 2a5d0 with context 2cd38, priority 20, and timeout 10000
Host info... added `tuvalu' with host 2cd38 to list 2b470
Host info... Add Net 2c260 (request 255c0) to pipe, 1 requests made, 1 requests in pipe, 0 pending
HTHost...... No ActivateRequest callback handler registered
HTHost 2cd38 going to state TCP_CHANNEL.
HTHost 2cd38 going to state TCP_DNS.
Looking up tuvalu
DNS Add..... `tuvalu' with 1 home(s) to 2b4c0
ParseInet... as port 7880 on 194.199.20.116 with 1 homes
HTHost 2cd38 going to state TCP_NEED_SOCKET.
Socket...... Created 4
Net Manager. Increasing active sockets to 1, 0 persistent sockets
Socket...... Turned off Nagle's algorithm
Socket...... Non-blocking socket
Channel..... Hash value is 4
Channel..... Added 2d618 to list 2f5b0
Reader...... Created reader stream 2f9c8
Socket...... TCP send buffer size is 0 for socket 4
Contacting tuvalu
HTHost 2cd38 going to state TCP_NEED_CONNECT.
HTDoConnect. WOULD BLOCK `tuvalu'
Host Event.. WRITE passed to `http://tuvalu:7880/test.html'
HTHost 2cd38 going to state TCP_CONNECTED.
HTHost 2cd38 connected.
StreamStack. Constructing stream stack for text/x-http to */*
Tee......... Created stream 2ae70 with resolver ef7021a8
HTTP........ Dumping request to `w3chttp.out'
Host Event.. FLUSH passed to `http://tuvalu:7880/test.html'
HTTP........ Generating HTTP/1.x Request Headers
HTTP........ Generating General Headers
MIME........ Generating Entity Headers
Buffer...... Flushing 2d650
Write Socket 273 bytes written to 4
Writing...
Uploading... Holding 255c0 request for 2000 ms
Read Socket. WOULD BLOCK fd 4
Host Event.. READ passed to `http://tuvalu:7880/test.html'
Read Socket. 25 bytes read from socket 4
Reading...
Response.... Created 2db28
Host info... New mode is 1 for host 2cd38
Net Manager. 1 active sockets, increasing persistent sockets to 1
Host info... added host 2cd38 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 2f9c8
Host........ 2 bytes remaining 
Host........ passing 2 bytes as consumed to 2f9c8
Host........ 0 bytes remaining 
MIME........ FREEING....
Read Socket. CONTINUE
HTTP........ Continuing
Read Socket. WOULD BLOCK fd 4
Uploading... Flushing 29830 with timer 2a550
Posting Data from callback function
Posting Data Target is SAVED
Host Event.. WE SHOULD DELETE ALL REQUEST ON `tuvalu'?
Host Event.. WE SHOULD DELETE ALL REQUEST ON `tuvalu'?
Host Event.. WE SHOULD DELETE ALL REQUEST ON `tuvalu'?
Host Event.. WE SHOULD DELETE ALL REQUEST ON `tuvalu'?

(endlessly loops here)

Received on Tuesday, 21 July 1998 12:33:45 UTC