Someone over at StackOverflow figured it out. Apparently there is some unknown character being inserted at the end of each line which was messing up the Content-Length. Instead of worrying about trying to figure out how to remove the extra characters I just tack on an extra character for each line at the end of the file and I end up sending exactly what I wanted.
On Fri, Sep 5, 2008 at 10:02 AM, Ethan <[EMAIL PROTECTED]> wrote: > > I am using a Perl script to post the contents of text file to my app > from a Solaris server. The script is available here. > > http://www.cpan.org/authors/id/E/EL/ELIJAH/bget-1.1 > > It sets the Content-Length based on the size of the file I am posting, > however when I check self.request.body it ends up truncating a few of > the characters off the end. If I modify the bget script and increase > the size the characters show up. There doesn't seem to be any > consistency, more lines in the file usually means more characters > getting clipped, so it isn't like I need to add 1 byte or anything. > > Perhaps there is a bug in the perl script but I am thinking this is > some sort of character/type language thing. What are the rules in > regards to setting the Content-Length correctly? > > Thanks, > Ethan > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
