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
Open
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
0e27208
Support multipart form POST requests.
bjeavons Jan 28, 2011
88938a0
Added get_request_options() to allow checking the options set in curl
hamstar Feb 19, 2011
293d5f3
default values
jrivero Mar 4, 2011
03fab04
Use exceptions for the error handling.
KendallHopkins Jun 21, 2011
3a0cc7d
Use a better and sorted list of exception.
KendallHopkins Jun 22, 2011
9f6d38e
Include error message in throw exception.
KendallHopkins Sep 2, 2011
786905d
Handle multiple response headers when following a redirection
Dec 20, 2011
3101030
Merge branch 'master' of https://github.com/bjeavons/curl
Dec 20, 2011
7327f41
Merge branch 'master' of https://github.com/hamstar/curl
Dec 20, 2011
b1593bb
Merge branch 'master' of https://github.com/SimpleUpdates/curl.git
Dec 20, 2011
9cefbb5
Fixed errors caused from the merge of https://github.com/SimpleUpdate…
Dec 20, 2011
67caeda
Added support for HTTP basic authentication
Dec 20, 2011
f70be61
Added ztest as submodule
Dec 21, 2011
5dc0822
Added debug support
aseba Mar 25, 2012
5962b52
added composer spec with the name shuber/curl
hamstar Jun 2, 2012
e6b1a12
Merge pull request #1 from hamstar/master
Jun 14, 2012
2283a0d
merge with hugo chinchilla
nickl- Jun 19, 2012
fc6eed1
huge refactoring: Use of getters|setters, PUT-Data-Requests
May 21, 2010
732f2bf
huge refactoring: Use of getters|setters, PUT-Data-Requests
May 21, 2010
accdb81
added missing require_once
May 21, 2010
d28f9ec
minor changes in curl & curl_response
Aug 17, 2010
7b358fc
Unit tests => PHPUNIT
Mar 1, 2011
2d3b276
added SSL handling
Mar 2, 2011
9231a7b
fix setOption() and setOptions()
apemsel Mar 22, 2011
e0bcb28
gitignore
Apr 8, 2011
500dbd7
includes
Apr 8, 2011
d77556e
small bugfix for urls without scheme
Apr 8, 2011
17b27f7
added very simple autoloader
Apr 12, 2011
f00a2dd
added very simple autoloader
Apr 12, 2011
cafc4ac
test changes
Apr 12, 2011
8dec78d
Merge forks fabeat/curl and hugochinchilla/curl
nickl- Jun 19, 2012
80f8d62
Merge with Sebastian Alvarez: aseba/curl
nickl- Jun 19, 2012
0b2ae29
Merge contrib branch 'merge-stream'
nickl- Jun 19, 2012
3596d92
Better Headers and optimizations.
nickl- Jun 19, 2012
4155d96
Merge with latest from professional-style
nickl- Jun 19, 2012
8595dbb
Restructure PSR-0 compliance, and reformatting.
nickl- Jun 20, 2012
8f2b106
Let the magic begin
nickl- Jun 20, 2012
cf551d3
The class file is now called Curl.php and not curl.php
nickl- Jun 20, 2012
e647ecd
Merge branch 'master' of git://github.com/jrivero/curl into merge-stream
nickl- Jun 20, 2012
f2e417f
merge changes from jrivero
nickl- Jun 20, 2012
d1974aa
Standard header values initialized
nickl- Jun 20, 2012
083552b
Resolve all removed references
nickl- Jun 20, 2012
2261fa3
PSR-1 and PSR-2 coding standard compliancy.
nickl- Jun 20, 2012
f29f392
manual kleen fix
nickl- Jun 20, 2012
b8965ff
more cs conformities
nickl- Jun 20, 2012
547be35
Add package descriptors
nickl- Jun 20, 2012
869d397
Added missing ref to Exception
nickl- Jul 3, 2012
1a7fefa
Added isJson convenience method
nickl- Jul 3, 2012
ab023a5
Anchor regex to allow headers with wildcard
mattleff Feb 19, 2015
611e24b
Correct exception class
mattleff Feb 25, 2015
f9a607f
Merge pull request #1 from SimpleUpdates/composer
mattleff Feb 25, 2015
3e021f6
Bump version
mattleff Feb 25, 2015
2f45c2e
Fix bugs; tag 1.0.2
mattleff Mar 5, 2015
44a19a8
1.0.3 with fix for unit tests
mattleff Mar 5, 2015
0df818d
Fixes issue with HTTP 100-Continue header
mattleff Mar 6, 2015
e4e1540
Update composer.json
mattleff Mar 6, 2015
2de5bd1
Only throw exception if there's an error
mattleff Apr 21, 2016
3d2f30e
Match all response headers until end of headers
mattleff Mar 5, 2018
98613f8
Remove Reason-Phrase
Apr 17, 2020
a15d7ec
Update cacert.pem
Apr 27, 2022
b1747aa
Update composer.json
Apr 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes issue with HTTP 100-Continue header
  • Loading branch information
mattleff committed Mar 6, 2015
commit 0df818d8083aa80105577543d7ac83cc76a98c02
2 changes: 1 addition & 1 deletion lib/Shuber/Curl/CurlResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function __construct($response, $outstr = null) {
reset($this->all_headers);
$headers = array_pop($matches);
# Extract the version and status from the first header
$status = trim(array_shift($headers));
for( $status = ""; preg_match( "#^HTTP/#", trim( $headers[0] ) ); $status = trim(array_shift($headers)) );
$this->headers['Status-Line'] = $status;
$status = preg_split('/\s/', $status, 3);
$this->headers['Http-Version'] = $status[0];
Expand Down