Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
piping input to an external script
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Steve Howell, post: 3858146"] See suggested debugging tip inline of your program.... # Try inserting lines like below, to see what characters are actually near char 66. print '---' print repr(s[65]) print repr(s[66]) print repr(s[:70]) print repr(unicode(s,encoding='utf8')[:70]) print '---' See above, it's pretty easy to see what the 66th character of "s" is. Your disconnect is that in your program you are NOT actually simulating the sending of mytest.html to the validate program, so you are comparing apples and oranges. The fact that you can send mytest.html to the validate program without a header from the shell suggest to me that it is equally unnecessary in your Python program, or maybe you just haven't thought through what you're really trying to accomplish here. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
piping input to an external script
Top