Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 14th, 2012  |  syntax: None  |  size: 0.23 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Post request using CURL [closed]
  2. $ch = curl_init();
  3. curl_setopt($ch, CURLOPT_POST);
  4.        
  5. $curl_request = curl_init('http://path/to/url');
  6. curl_setopt($curl_request, CURLOPT_POST, TRUE);
  7. // Finish setting options and make the request