Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: getting sometimes empty cgi form with post

by david2008 (Scribe)
on Mar 08, 2010 at 08:49 UTC ( [id://827341]=note: print w/replies, xml ) Need Help??


in reply to Re: getting sometimes empty cgi form with post
in thread getting sometimes empty cgi form with post

Hi Almut, Thanks for your reply.
It really helped me a lot.

What is interesting that when the problem occurs i read 0 bytes and when i switched to cgi::simple it gave the following error with the cgi_error function. "500 Bad read on POST! wanted 135, got 0 at ...".

Now i have just to find out why this happens :-).
Thanks, David
  • Comment on Re^2: getting sometimes empty cgi form with post

Replies are listed 'Best First'.
Re^3: getting sometimes empty cgi form with post
by almut (Canon) on Mar 08, 2010 at 13:40 UTC
    Now i have just to find out why this happens

    You could try strace (facetiously aka "Almut's Golden Hammer" at the place I work... — yes, I do tend to slightly overuse it, but it has definitely helped me numerous times to solve problems within minutes, that other people before had messed around with for hours or days ;)

    This might help to debug how/if the query string is handled apache-internally, and where exactly the error occurs that leads to it being dropped. At least if the problem is replicable enough that you won't have to wait thousands of requests for it to occur. To ease debugging, you might want to start up apache in single process mode (option -X). Also, don't forget to trace forked processes (the CGI script) as well (option -f).

      Thanks.
      I found an interesting issue that when changing the method to get, the problem nearly disappears.
      Maybe this fact could help to narrow down the problem.
        Maybe this fact could help to narrow down the problem.

        Maybe, but I thought you narrowed it down to your mysterious server?

Re^3: getting sometimes empty cgi form with post
by Anonymous Monk on Mar 08, 2010 at 08:56 UTC
      Thanks.

      I tried wireshark already and also httpfox on the client side. I see the request going out from the client. The problem is the server

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://827341]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-20 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found