Hi,
I have a question regarding redirect url in perl.
I can use this code to redirect url properly:
====
#!/usr/bin/perl
print "Content-type:application/x-download\n";
$url="print "Location: $url \n\n";
====
it works fine, now I create a folder with .htaccess protected, I have setup username/password in .htpasswd, the url " can reach that protected page without prompt me the box to login, I want to write it in perl so it will login automatically.
However if I try:
====
#!/usr/bin/perl
print "Content-type:application/x-download\n";
$url="print "Location: $url \n\n";
====
It doesn't work and prompt me to enter login info. can anyone help me is it possible to redirect username/password embeded url in perl? thanks in advance.
I have a question regarding redirect url in perl.
I can use this code to redirect url properly:
====
#!/usr/bin/perl
print "Content-type:application/x-download\n";
$url="print "Location: $url \n\n";
====
it works fine, now I create a folder with .htaccess protected, I have setup username/password in .htpasswd, the url " can reach that protected page without prompt me the box to login, I want to write it in perl so it will login automatically.
However if I try:
====
#!/usr/bin/perl
print "Content-type:application/x-download\n";
$url="print "Location: $url \n\n";
====
It doesn't work and prompt me to enter login info. can anyone help me is it possible to redirect username/password embeded url in perl? thanks in advance.