develooper Front page | perl.beginners | Postings from July 2012

Slightly OT: POST data to perl script

Thread Next
From:
Mark Haney
Date:
July 24, 2012 08:53
Subject:
Slightly OT: POST data to perl script
Message ID:
500EC4FD.3050501@abemblem.com
This is slightly OT, but I'm kinda under a dead line and am hoping 
someone takes pity on me and supplies an answer.  I have a small 
webserver that takes data from a custom chip and sends it via a POST to 
a perl script on our primary webserver.  The data is sent like 
TIME=XXXXXX&TOWER=YYYY where the Y's are single digit integers denoting 
the status of a light on the machine.  (0,1,2 for each integer)

The problem I'm seeing in tcpdump is that it appears that the first two 
integers are being dropped if they are both zeroes.  It doesn't seem to 
happen with a first digit being !=0.  I can't say (but suspect) if the 
first digit only = 0 if it gets dropped, since the data won't come with 
that output.

I know this is an HTML type issue, but is there something I'm missing? 
Maybe an escape char that would keep that from happening?

-- 

Mark Haney
Software Developer/Consultant
AB Emblem
markh@abemblem.com
Linux marius.homelinux 3.4.4-4.fc16.x86_64 GNU/Linux


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About