Re: url encode
- From: tom@xxxxxxxxxxxxxx (Tom Phoenix)
- Date: Wed, 31 Jan 2007 10:49:57 -0800
On 1/31/07, Tatiana Lloret Iglesias <tlloreti@xxxxxxxxx> wrote:
i'm trying to get this url but i get an error:
What error?
my $response = $ua->get($url);
What's $ua? If it's an LWP::UserAgent object, that should be a correct
way to use it. Of course, you'll need next to examine the response
object to see what happened.
how should i encode it? I've tried to use uri_escape function but it
fails...
How does it fail? For that matter, how did you try it? (Are you
beginning with some other string, and wishing to produce the escaped
one; or are you beginning with the given URL string, and wishing to
process it somehow?)
Have you tried the examples in the LWP documentation? They're quite
comprehensive.
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
.
- References:
- url encode
- From: Tatiana Lloret Iglesias
- url encode
- Prev by Date: Re: Calculate date
- Next by Date: Re: regexp
- Previous by thread: url encode
- Index(es):
Relevant Pages
|