Click here to get back home

POE HTTP Proxy

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
POE HTTP Proxy George Pabst 10-03-2004
Get Chitika Premium
Posted by George Pabst on October 3, 2004, 1:26 pm
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Posted by Rocco Caputo on October 4, 2004, 5:06 am
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Similar ThreadsPosted
HTTP Proxy via HTTP Layer by Perl? October 19, 2004, 5:56 pm
anyone tried http-proxy on windows? November 16, 2004, 7:42 pm
HTTP Get with Proxy authentication January 17, 2005, 3:42 pm
pop3 and http proxy March 16, 2005, 2:52 pm
How to get CPAN to use Http Proxy? October 24, 2005, 10:02 am
Getting started with HTTP::Proxy April 10, 2008, 4:11 pm
set IE enviroment to use HTTP::Proxy module? November 6, 2007, 8:21 am
http://freewebtown.com/learnstuffonline - Web Proxy - click on the ads please :) July 31, 2005, 9:54 pm
HTTP::Proxy Error: "Getting request failed: Client closed" January 19, 2007, 11:25 pm
FTP PUT with proxy? January 18, 2006, 12:18 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap