php - how to check (read) crul CURLOPT field of handle? -
this question has answer here:
- how option set curl_setopt()? 2 answers
1) there method check if curlopt field of curl handle set , if value?
reason - i'm writing class should recognize if curlopt_post set. if not dedicated method add url query in syntax perform request.
2) second reason read debug curl parameter fields of handle curl_exec had problem execute , returned error
3) confirmation of changed curlopt field of handle, assuming possible change field set before (is it?)
for 1), this answer should you
for 2) you'd better use curl_error curl errors
for 3), curl_setopt overwrite defined options. returns true
on success , false
otherwise.
Comments
Post a Comment