Submit a form automatically with PHP -



I wanted to submit a form with php with special values, but it did not work here Code is:

  & lt ;? create the array of data to post php // $ post_data ['username'] = 'some'; $ Post_data ['password'] = 'something!'; // Generate data for Troops array and posting (key 1 = value 1) Forex ($ post_data $ key = & gt; $ value) {$ post_items [] = $ key '=' $ value; } // implode () $ post_string = create the last string to post using implode ('& amp; $, post_items); // Create CRL Connection curl_connection = curl_init ('http://www.parsdata.com/'); // Set option curl_setopt ($ curl_connection, CURLOPT_CONNECTTIMEOUT, 30); Curl_setopt ($ curl_connection, CURLOPT_USERAGENT, "Mozilla / 4.0 (compatible; MSIE 6.0; Windows NT 5.1)"); Curl_setopt ($ curl_connection, CURLOPT_RETURNTRANSFER, true); Curl_setopt ($ curl_connection, CURLOPT_SSL_VERIFYPEER, incorrect); Curl_setopt ($ curl_connection, CURLOPT_FOLLOWLOCATION, 1); // set data curl_setopt ($ curl_connection, CURLOPT_POSTFIELDS, $ post_string) to post; // our request $ result = curl_exec ($ curl_connection); // show information about print_r (curl_getinfo ($ curl_connection);); Echo Curl_Rarno ($ curl_connection). '-' curl_error ($ curl_connection); // Close the connection curl_close ($ curl_connection); ? & Gt;   

And this is what's back:

  array ([url] => http: //www.parsdata .com / [content_type] => text / html; charset = utf-8 [HTTP_CODE] => 200 [header_size] => 328 [request_size] => 245 [filetime] = & gt; -1 [ssl_verify_result] => 0 [redirect_count] => [[TOTAL_TIME] = & gt; 3.8,76,425 [namelookup_time] => 0.0,31,218 [connect_time] = > 0.2338,176 [pretransfer_time] => 0.23,823 [size_upload] => 56 [size_download] => 72015 [speed_download] => 18,577 [speed_upload] = 14 [download_content_length] = & gt; 72015 [upload_content_length] => 56 [starttransfer_time] = & gt; 1.7,03,701 [redirect_time] => 0 [certinfo] => array () [Primary_ip] => 217.66.216.91 [primary_port] => 80 [local_ip] => 23.236.155.242 [local_port] => 43,417 [RE DIRECT_URL] => 0 -   

There was no error but it does not work.
I do not really know what to do.
If you need a real user and I can give you the adv Ace

You must use the correct URL for login. I visited the website and I found this URL to enter - http://members.parsdata.com/default.aspx?dll=user&ctl=autosignin

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -