Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //extract data from the post
- extract($_POST);
- //set POST variables
- $url = 'http://upload7.fileflyer.com/affiliate/login.aspx';
- $fields = array(
- 'AffID' => urlencode('Your Affiliate ID'),
- 'FieldCounter' => urlencode('1'),
- 'Password' => urlencode('Your Password Here'),
- '__EVENTARGUMENT' => urlencode(''),
- '__EVENTTARGET' => urlencode(''),
- '__EVENTVALIDATION' => urlencode('/wEWBAKK/pSSBwL95bfJBgLSxeCRDwKMkP+WCPJiASTo6FAbul0guNYDiJIWfpJx'), // Do not Touch
- '__VIEWSTATE' => urlencode('/wEPDwUKLTkzNTM5NDk0OGRk0UCj1dy4wmd7V69nKcGyAY6sARM='), // Do not Touch
- 'cmdSubmit' => urlencode('Login')
- );
- //url-ify the data for the POST
- foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
- rtrim($fields_string, '&');
- //open connection
- $ch = curl_init();
- //set the url, number of POST vars, POST data
- curl_setopt($ch,CURLOPT_URL, $url);
- curl_setopt($ch,CURLOPT_POST, count($fields));
- curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
- //execute post
- $result = curl_exec($ch);
- //close connection
- curl_close($ch);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment