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
Show file tree
Hide file tree
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
Add package descriptors
  • Loading branch information
nickl- committed Jun 20, 2012
commit 547be35612eb4aad1a2277753c8c19de3ba9ebdd
73 changes: 67 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,68 @@
{
"name": "shuber/curl",
"license": "MIT",
"keywords": ["curl","spider", "bot", "scraper"],
"type": "library",
"description": "PHP Wrapper for Curl"
{
"name": "Shuber\/Curl",
"description": "A basic CURL wrapper for PHP (see [http:\/\/php.net\/curl](http:\/\/php.net\/curl) for more information about the libcurl extension for PHP)",
"version": "0.1.0",
"type": "library",
"time": "2012-06-20 17:44:54",
"homepage": "",
"license": "MIT",
"authors": [
{
"name": "%aN",
"email": "%aE"
},
{
"name": "Adrian Pemsel",
"email": "adrian@adrianpemsel.de"
},
{
"name": "Ben Jeavons",
"email": "benjamin.jeavons@colorado.edu"
},
{
"name": "Hugo Chinchilla Carbonell",
"email": "hugo@bulma.net"
},
{
"name": "Jordi Rivero",
"email": "jrivero24@yahoo.es"
},
{
"name": "Kendall Hopkins",
"email": "softwareelves@gmail.com"
},
{
"name": "Sean Huber",
"email": "shuber@huberry.com"
},
{
"name": "Sebastian M. Alvarez",
"email": "sebastianmalvarez@gmail.com"
},
{
"name": "Simone Carletti",
"email": "weppos@weppos.net"
},
{
"name": "fabeat",
"email": "fg@linkable.de"
},
{
"name": "ide user ide_hamstar",
"email": "hamstar@telescum.co.nz"
},
{
"name": "nickl-",
"email": "nick@jigsoft.co.za"
},
{
"name": "shuber",
"email": "sean.huber@cox.net"
}
],
"autoload": {
"psr-0": {
"Shuber\\Curl": "lib\/"
}
}
}
47 changes: 47 additions & 0 deletions package.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[package]
name = "Curl"
summary = "A basic CURL wrapper for PHP (see [http://php.net/curl](http://php.net/curl) for more information about the libcurl extension for PHP)"
desc = "A basic CURL wrapper for PHP (see [http://php.net/curl](http://php.net/curl) for more information about the libcurl extension for PHP)"
version = "0.1.0"
stability = "alpha"
channel = "nickl-.github.com/pear"
homepage = ""
license = "MIT"
author = "%aN <%aE>"
authors[] = "Adrian Pemsel <adrian@adrianpemsel.de>"
authors[] = "Ben Jeavons <benjamin.jeavons@colorado.edu>"
authors[] = "Hugo Chinchilla Carbonell <hugo@bulma.net>"
authors[] = "Jordi Rivero <jrivero24@yahoo.es>"
authors[] = "Kendall Hopkins <softwareelves@gmail.com>"
authors[] = "Sean Huber <shuber@huberry.com>"
authors[] = "Sebastian M. Alvarez <sebastianmalvarez@gmail.com>"
authors[] = "Simone Carletti <weppos@weppos.net>"
authors[] = "fabeat <fg@linkable.de>"
authors[] = "ide user ide_hamstar <hamstar@telescum.co.nz>"
authors[] = "nickl- <nick@jigsoft.co.za>"
authors[] = "shuber <sean.huber@cox.net>"
contributors[] = "%aN <%aE>"
contributors[] = "Adrian Pemsel <adrian@adrianpemsel.de>"
contributors[] = "Ben Jeavons <benjamin.jeavons@colorado.edu>"
contributors[] = "Hugo Chinchilla Carbonell <hugo@bulma.net>"
contributors[] = "Jordi Rivero <jrivero24@yahoo.es>"
contributors[] = "Kendall Hopkins <softwareelves@gmail.com>"
contributors[] = "Sean Huber <shuber@huberry.com>"
contributors[] = "Sebastian M. Alvarez <sebastianmalvarez@gmail.com>"
contributors[] = "Simone Carletti <weppos@weppos.net>"
contributors[] = "fabeat <fg@linkable.de>"
contributors[] = "ide user ide_hamstar <hamstar@telescum.co.nz>"
contributors[] = "nickl- <nick@jigsoft.co.za>"
contributors[] = "shuber <sean.huber@cox.net>"

[require]
php = "5.3"
pearinstaller = "1.4.1"

[roles]
lib = "php"
test = "test"
config = "cfg"
bin = "script"
public = "www"

129 changes: 129 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<?xml version="1.0"?>
<package xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" packagerversion="1.4.10" version="2.0" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
<name>Curl</name>
<channel>nickl-.github.com/pear</channel>
<summary>A basic CURL wrapper for PHP (see [http://php.net/curl](http://php.net/curl) for more information about the libcurl extension for PHP)</summary>
<description>A basic CURL wrapper for PHP (see [http://php.net/curl](http://php.net/curl) for more information about the libcurl extension for PHP)</description>
<lead>
<name>%aN</name>
<user/>
<email>%aE</email>
<active>yes</active>
</lead>
<lead>
<name>Adrian Pemsel</name>
<user/>
<email>adrian@adrianpemsel.de</email>
<active>yes</active>
</lead>
<lead>
<name>Ben Jeavons</name>
<user/>
<email>benjamin.jeavons@colorado.edu</email>
<active>yes</active>
</lead>
<lead>
<name>Hugo Chinchilla Carbonell</name>
<user/>
<email>hugo@bulma.net</email>
<active>yes</active>
</lead>
<lead>
<name>Jordi Rivero</name>
<user/>
<email>jrivero24@yahoo.es</email>
<active>yes</active>
</lead>
<lead>
<name>Kendall Hopkins</name>
<user/>
<email>softwareelves@gmail.com</email>
<active>yes</active>
</lead>
<lead>
<name>Sean Huber</name>
<user/>
<email>shuber@huberry.com</email>
<active>yes</active>
</lead>
<lead>
<name>Sebastian M. Alvarez</name>
<user/>
<email>sebastianmalvarez@gmail.com</email>
<active>yes</active>
</lead>
<lead>
<name>Simone Carletti</name>
<user/>
<email>weppos@weppos.net</email>
<active>yes</active>
</lead>
<lead>
<name>fabeat</name>
<user/>
<email>fg@linkable.de</email>
<active>yes</active>
</lead>
<lead>
<name>ide user ide_hamstar</name>
<user/>
<email>hamstar@telescum.co.nz</email>
<active>yes</active>
</lead>
<lead>
<name>nickl-</name>
<user/>
<email>nick@jigsoft.co.za</email>
<active>yes</active>
</lead>
<lead>
<name>shuber</name>
<user/>
<email>sean.huber@cox.net</email>
<active>yes</active>
</lead>
<date>2012-06-20</date>
<time>17:44:54</time>
<version>
<release>0.1.0</release>
<api>0.1.0</api>
</version>
<stability>
<release>alpha</release>
<api>alpha</api>
</stability>
<license>MIT</license>
<notes>-</notes>
<contents>
<dir name="/">
<file name="lib/cacert.pem" role="php" md5sum="1f13709ead3158bb9d480d3df03708a6"/>
<file name="lib/Shuber/Curl/Curl.php" role="php" md5sum="dfda2156c2175f073903c6959d109550"/>
<file name="lib/Shuber/Curl/CurlException.php" role="php" md5sum="6a27f2f961c0171968bd59a02735e578"/>
<file name="lib/Shuber/Curl/CurlPutData.php" role="php" md5sum="8b0a361c71758efe323f23ac6bb045a0"/>
<file name="lib/Shuber/Curl/CurlResponse.php" role="php" md5sum="f6731903f3ce2ea602c64c5748955376"/>
<file name="test/CurlResponseTest.php" role="test" md5sum="80bbd277500ff81a267721949fa0b3a0"/>
<file name="test/CurlTest.php" role="test" md5sum="7880f1d7b18aa3fcb9b23be276eec687"/>
</dir>
</contents>
<dependencies>
<required>
<php>
<min>5.3</min>
</php>
<pearinstaller>
<min>1.4.1</min>
</pearinstaller>
</required>
</dependencies>
<phprelease>
<filelist>
<install name="lib/cacert.pem" as="cacert.pem"/>
<install name="lib/Shuber/Curl/Curl.php" as="Shuber/Curl/Curl.php"/>
<install name="lib/Shuber/Curl/CurlException.php" as="Shuber/Curl/CurlException.php"/>
<install name="lib/Shuber/Curl/CurlPutData.php" as="Shuber/Curl/CurlPutData.php"/>
<install name="lib/Shuber/Curl/CurlResponse.php" as="Shuber/Curl/CurlResponse.php"/>
<install name="test/CurlResponseTest.php" as="CurlResponseTest.php"/>
<install name="test/CurlTest.php" as="CurlTest.php"/>
</filelist>
</phprelease>
</package>