Using cURL in PHP
suggest changeSyntax
- resource curl_init ([ string $url = NULL ] )
- bool curl_setopt ( resource $ch , int $option , mixed $value )
- bool curl_setopt_array ( resource $ch, array $options )
- mixed curl_exec ( resource $ch )
- void curl_close ( resource $ch )
Parameters
Parameter | Details |
——— | —–– |curl_init | – Initialize a cURL session |
url | The url to be used in the cURL request |curl_setopt | – Set an option for a cURL transfer |
ch | The cURL handle (return value from curl_init()) |
option | CURLOPT_XXX to be set - see PHP documentation for the list of options and acceptable values |
value | The value to be set on the cURL handle for the given option |curl_exec | – Perform a cURL session |
ch | The cURL handle (return value from curl_init()) |curl_close | – Close a cURL session |
ch | The cURL handle (return value from curl_init()) |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents