Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. $ch = curl_init();
  2. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  3. curl_setopt($ch, CURLOPT_URL, $url);
  4. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  5. curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
  6. curl_setopt($ch, CURLOPT_TIMEOUT, 10);
  7. curl_setopt($ch, CURLOPT_POST, true);
  8. curl_setopt($ch, CURLOPT_POSTFIELDS, $params); // the SOAP request
  9. // get the response from the SERVER
  10. $response = curl_exec($ch);
  11.  
  12. curl_close($ch);
  13. $arr = array();
  14. print_r($header_size);
  15.  
  16. $dom = new DOMDocument();
  17. @$dom->loadHTML($response);
  18. echo '<pre>';
  19. print_r($dom); die();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement