url encode

2007-01-31 Thread Tatiana Lloret Iglesias

Hi,
i'm trying to get this url but i get an error:

http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2Sect2=HITOFFu=%2Fnetahtml%2FPTO%2Fsearch-adv.htmr=1p=1f=Gl=50d=PTXTS1=%22clear+dead%22OS=%22clear+dead%22RS=%22clear+dead%22

my $response =  $ua-get($url);

how should i encode it? I've tried to use uri_escape function but it
fails...

Thanks
T


Re: url encode

2007-01-31 Thread Tom Phoenix

On 1/31/07, Tatiana Lloret Iglesias [EMAIL PROTECTED] 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

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




url encode

2001-10-20 Thread Pradeep Sethi

Is there a similar function in perl like PHP - urlencode / urldecode ?

Thanks


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: url encode

2001-10-20 Thread RaFaL Pocztarski

Pradeep Sethi wrote:

 Is there a similar function in perl like PHP - urlencode / urldecode ?

CGI-escape and CGI-unescape methods (they work also as functions).

- RaFaL Pocztarski, [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]