Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to using exception handling for errors. #4

Open
wants to merge 61 commits into
base: master
Choose a base branch
from

Conversation

KendallHopkins
Copy link

I know this will break backward compatibility but IMO it's very important to force programmers to handle curl errors, instead of passively handling them (via ->error()). It also removes the possible case where a person tries to treat the output of request as an object causing a fatal error to be triggered.

Contribution by Sebastian Alvarez @aseba enabling CURLOPT_VERBOSE
@nickl-
Copy link

nickl- commented Jun 19, 2012

merged at nickl-/curl@8dec78d

nickl- and others added 28 commits June 19, 2012 14:35
Collect response->debug_log if debug is enabled.
Header parsing is optional by default only the response body will be returned.
If headers are chosen both request and response raw headers are kept.
Still only the response is separated and collected in associative array.
Also added User agent composition.
For example, `Access-Control-Allow-Origin:*`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants