CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: "HTTP::Headers" error on apostrophe in URL: Edit Log



Bucz
Novice

May 2, 2009, 3:32 PM


Views: 3985
"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)


Edit Log:
Post edited by Bucz (Novice) on May 2, 2009, 4:12 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives