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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

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


May 2, 2009, 3:32 PM

Views: 4509
"HTTP::Headers" error on apostrophe in URL


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/ line 536.

I just figured out that it occurs when I add an apostrophe to the URL:

this is OK:

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