How to use cURL to POST form values on form using JS
问题 * Sorry for the long post * I'm using cURL in PHP to post some form fields in effort to return the result of the post Need some help as the form is somewhat unusual. cURL Script $ch = curl_init(); $data = array('field_1_name' => 'field_value', 'field_2_name' => 'field_value', 'field_3_name' => 'field_value', ); curl_setopt($ch, CURLOPT_URL,'http://url.com'); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $fp =