dumbadam has asked for the wisdom of the Perl Monks concerning the following question:
Edited by boo_radley : Closed assorted tags.#!/usr/bin/perl use CGI; use HTTP::Headers; use HTTP::Request; use LWP::UserAgent; $q = new CGI; $posttourl = "http://www.theposturlhere.com/cgi-bin/post.cgi"; $refererurl = "http://www.theposturlrefererhere.com/cgi-bin/post.cgi"; $q = new CGI( { pic_url=>"$pictureurl", description =>$picturedes, banner_url=>$bannerurl, banner_link=>$siteurl, banner_text=>$bannertext, email=>$email, nickname=>$poster, category=>$postcat, action=>"done", }); $formdata = $q->query_string; $h = new HTTP::Headers( Accept=>'*/*', Referer=> $refererurl, user_agent=>'Mozilla/4.5', virtual_host=>'216.and so on, server_name=>'www.thesite.com', script_name=>'/post.cgi', remote_host=>'www.thesiteagain.com', http_user_agent=>'Mozilla/4.5', Content_Type=>'application/x-www-form-urlencoded' ); $req = new HTTP::Request( "POST", $posttourl, $h ); $req->content($formdata); $ua = new LWP::UserAgent; $ua->agent( "Mozilla/4.5" ); $response = $ua->request($req); print $q->header;#blah blah print $q->start_html(-script=>$JSCRIPT); print $response->content; print $q->end_html;
Edit kudra, 2001-09-23 Removed colours for themesafe viewing
|
|---|