michaelfurey Posted March 10, 2017 Share Posted March 10, 2017 (edited) Hi! I am trying to do a script to fill in and submit this page: https://sa.www4.irs.gov/irfof/lang/en/irfofgetstatus.jsp . Unfortunately my script doesn't work... have you some ideas about the reasons? <?php $dir = 'C:/Users/mmea/Desktop/temporary/'; $refundAmount = // WHY $TIN3 = // DID $TIN2 = // YOU $TIN5 = // POST $filingStatus1 = // THESE? $url="https://sa.www4.irs.gov/irfof/lang/en/irfofgetstatus.jsp"; $postinfo = "refundAmount=".$refundAmount."&TIN2=".$TIN2."&TIN5=".$TIN5."&TIN3=".$TIN3."&filingStatus=".$filingStatus1."&autologin=1&Submit2=Submit"; $cookie_file_path = $dir."/cookie.txt"; $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_NOBODY, false); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path); curl_setopt($ch, CURLOPT_COOKIE, "cookiename=0"); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_REFERER, $_SERVER['REQUEST_URI']); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postinfo); curl_exec($ch); curl_close($ch); ?> Edited March 10, 2017 by requinix OMFG Link to comment Share on other sites More sharing options...
requinix Posted March 10, 2017 Share Posted March 10, 2017 Dude. That's the IRS. You don't bot the IRS. Good intentions or not. 1 Link to comment Share on other sites More sharing options...
taquitosensei Posted March 10, 2017 Share Posted March 10, 2017 Dude. That's the IRS. You don't bot the IRS. Good intentions or not. Agreed Link to comment Share on other sites More sharing options...
michaelfurey Posted March 10, 2017 Author Share Posted March 10, 2017 Well I don't have bad intentions however I understand your point of view! Link to comment Share on other sites More sharing options...
taquitosensei Posted March 10, 2017 Share Posted March 10, 2017 Well I don't have bad intentions however I understand your point of view! It's not the intentions that count. This is unauthorized use. Without an error message, or anything other than "my script doesn't work" I'm going to assume that it's not working because of something on the IRS end. Link to comment Share on other sites More sharing options...
requinix Posted March 10, 2017 Share Posted March 10, 2017 I just realized: you included the form information in your post. You included it in your post. I've removed it because that level of naivete goes beyond our general "we don't edit posts" rules, but there's no guarantee (a) that someone hasn't already collected it or (b) that this page has been cached somewhere using a version before the edit. This is the time when you should sign up for an identity monitoring/protection service. And that is all I think we should say on this matter. Link to comment Share on other sites More sharing options...
Recommended Posts