php curl bypass post fields without associative array in aspx page

$postdata = array('__VIEWSTATE' => $viewstate, '__EVENTVALIDATION' => $eventValidation, 'id' => $id, 'pass' => $ps, 'choice' => $select, 'Button' => $btn);  curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata); // this array post working, but bypass url not working  curl_setopt($ch, CURLOPT_POSTFIELDS, '_VIEWSTATE='.$viewstate.'&_EVENTVALIDATION='.$eventvalidation.'&id='.$id.'&pass='.$ps.'&choice='.$select.'&button='.$btn); // how to change this line for working? 

How to modify above line, what i did wrong?

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.