php - how to check (read) crul CURLOPT field of handle? -


this question has answer here:

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

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -