Hey guys how can I set reffer with pearl.
I dont know nothing about pearl but I found this.
The following Perl code shows how to set the REFERER header in an HTTP request and convince the server that the request came from Login.html:
Code:
use HTTP::Request::Common qw(POST GET); use LWP::UserAgent;  $ua = LWP::UserAgent->new(); $req = POST 'http://www.northwindtraders.com/dologin.asp',          [   Username => 'mike',              Password => 'mypa$w0rd',          ]; $req->header(Referer => 'http://www.northwindtraders.com/login.html'); $res = $ua->request($req);
I just want to set a redirect with php or javascript with a perl reffer. (The fake reffer will be facebook.com/*)
Thank you for help