Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^3: perl null padding

by nobull (Friar)
on Apr 13, 2008 at 09:41 UTC ( #680062=note: print w/replies, xml ) Need Help??

in reply to Re^2: perl null padding
in thread perl null padding

For some reason in mod_perl it never goes past the null padding line.

What direct observation are you making that lead you to conclude that?

If you comment out the padding line does it correctly print the length of the unpadded string?

Have you put a die() or similar after the padding to see if execution is really reaching that point?

It seems much more likely that something you are doing later in the script with the null bytes is causing a mode of failure that prevents the data that's been written to response from appearing on the client.

Replies are listed 'Best First'.
Re^4: perl null padding
by m.y (Novice) on Apr 14, 2008 at 18:51 UTC
    Right now its a pretty simple handler which simply prints out the length of the null-padded string. What I noticed from running the code was that the code immediately after the null-padding line is never reached. If I comment out this line then the code after it executes as expected.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2023-06-01 16:26 GMT
Find Nodes?
    Voting Booth?

    No recent polls found