
Bucz
Novice
May 2, 2009, 3:32 PM
Views: 2947
|
|
"HTTP::Headers" error on apostrophe in URL
|
|
|
Hello, a strange error I get when trying to invoke LWP UserAgernt: Can't locate object method "sprint" via package "HTTP::Headers" at /Library/Perl/5.8.8/HTTP/Message.pm line 536. I just figured out that it occurs when I add an apostrophe to the URL: this is OK: $req->content("id=1002") this is errorous (%27 is an apostrophe ' ) $req->content("id=1002 %27") I have just updated packages with CPAN so it should go OK. I user the most simple standard code to test UserAgent I use Mac OS 10.5 if it makes a difference Any ideas?
(This post was edited by Bucz on May 2, 2009, 4:12 PM)
|