medc
11-24-2005, 04:18 AM
Hi, I need some basic help using perl.
I have a cgi upload script. The script requires the cgi-lib2.pl library.
The script uploads ok and then automatically redirects the user to a PHP script to do some post-upload work. The perl code is this:
print "Location: http://www.domain.net/insert.php?id=$in{'sourcefile'}\n\n";
The problem is that the actual URL that gets sent to the browser contains some weird characters which the PHP script cannot understand:
http://www.domain.net/insert.php?id=ÐÏࡱá
How can I fix this?
I have a cgi upload script. The script requires the cgi-lib2.pl library.
The script uploads ok and then automatically redirects the user to a PHP script to do some post-upload work. The perl code is this:
print "Location: http://www.domain.net/insert.php?id=$in{'sourcefile'}\n\n";
The problem is that the actual URL that gets sent to the browser contains some weird characters which the PHP script cannot understand:
http://www.domain.net/insert.php?id=ÐÏࡱá
How can I fix this?