develooper Front page | perl.libwww | Postings from July 2001

Secial characters in post requests

Thread Next
From:
Neven
Date:
July 26, 2001 06:38
Subject:
Secial characters in post requests
Message ID:
005301c115d7$bd76b570$32a8a8c0@fake
I have problem to post some spacial charecter in same way as they was posted from IExplorer
example 

$resp=$ua->request(POST 'http://neven/',
   [mail=>'neven@wizcom.bg']);

will produce following request

POST http://neven/ HTTP/1.0
Host: neven
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
Content-Length: 22
Content-Type: application/x-www-form-urlencoded

mail=neven%40wizcom.bg

but a want to post '@'  instead of %40 . If it is possible?

other problem
when try to post 

name='Jon Smit';

you will post
Jon%20Smit but some browsers will post Jon+Smit
So I want to post + instead of %20
How can I control these diferences? 

10x

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About