summaryrefslogtreecommitdiff
path: root/inc/HTTPClient.php
Commit message (Collapse)AuthorAge
* HTTPclient: print number of received bytes on errorAndreas Gohr2013-02-16
|
* HTTPClient: updated function commentsAndreas Gohr2013-02-16
|
* HTTPClient: fixed max_bodysize when using keep-aliveAndreas Gohr2013-02-16
|
* better HTTPClient debug output on CLIAndreas Gohr2013-02-16
|
* Merge branch 'master' into proxyconnectAndreas Gohr2012-11-08
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (169 commits) added PCRE UTF-8 checks to do=check FS#2636 avoid multiple paralell update checks fix regression bug in HTTPClient FS#2621 changed PAGEUTILS_ID_HIDEPAGE to has BEFORE/AFTER TarLib code cleanup TarLib: fixed appending in non-dynamic mode fixed third method of adding files in TarLib fix lone zero block in TarLib created archives fix use of constructor in TarLib Slovak language update Korean language update Latvian language update added event PAGEUTILS_ID_HIDEPAGE added test for isHiddenPage() removed redundant variables in tpl_include_page() (because of 3ff8773b) added cut off points for mobile devices as parameters to style.ini Corrected typo: ruke -> rule Persian language update Spanish language update russian language update ...
| * fix regression bug in HTTPClient FS#2621Andreas Gohr2012-11-06
| | | | | | | | | | | | | | | | | | | | | | | | | | In the recent refactoring of the HTTPClient, a problem with certain systems was reintroduced. On these systems a select() call always waits for a timeout on the first call before working properly on the second call. This patch reintroduces the shorter timeouts with usleep rate limiting again. Since this bug is not reproducible on other systems it can't be unit tested unfortunately.
* | support CONNECT for tunneling SSL via HTTP proxies FS#2431Andreas Gohr2012-07-28
|/ | | | The included test cases currently expect a squid at localhost:3128
* Avoid timeout when content-length is 0Tom N Harris2012-06-27
|
* Limit size of reads when max_bodysize is set or content-length is presentTom N Harris2012-06-27
|
* Skip over chunk extensions that nobody uses because RFC2616 says soTom N Harris2012-06-20
|
* HTTPClient will read up to max_bodysize if it canTom N Harris2012-06-20
|
* Validate the size of a chunk before reading from the socketTom N Harris2012-06-20
|
* Efficiently wait on socketsTom N Harris2012-06-20
|
* HTTP headers are already parsed, there is no need for regexpTom N Harris2012-06-19
|
* Utility function for writing to a socketTom N Harris2012-06-19
|
* Utility functions for reading from a socket.Tom N Harris2012-06-18
| | | | | | | Reading from a socket is handled by functions that encapsulate the error handling and timeout conditions. _readData reads blocks of data. _readLine reads a single line.
* Raise an exception on socket errors.Tom N Harris2012-06-18
| | | | | This is the first step in refactoring the socket reader to be more resilient and easier to debug.
* Correct handling of chunked transfer encoding. (FS#2535)Tom N Harris2012-06-18
|
* Avoid strict warnings about unset array keys.Tom N Harris2012-06-18
|
* Reference static variable through 'self::' as you're supposed to.Tom N Harris2012-06-18
|
* Fixed call to new constructor nameTim Roes2012-03-18
|
* coding style updatesAndreas Gohr2012-03-16
|
* simpler/more robust header parsing in HTTPClientAndreas Gohr2012-02-22
| | | | The previous regexp approach failed for empty headers.
* suppress errors on stream_select FS#2276Andreas Gohr2011-11-27
| | | | | On certain environments, stream_select might produce temporary errors when file descriptors are running scarce.
* avoid 100% cpu usage when reading HTTP headers FS#2304Andreas Gohr2011-08-21
|
* better stream writing in HTTPClient FS#2036Andreas Gohr2011-02-06
| | | | | | | | | | | This changes the HTTP stream to blocking while writing to the stream using select() to handle timeouts. Addtionally, wwriting is done in 4k block now (as it is done with reading). This is supposed to fix a problem with writing to a SSL stream that is not quite ready. Reading from the stream continues to be non-blocking as before.
* Merge branch 'master' of github.com:splitbrain/dokuwikiAdrian Lang2011-01-14
|\
| * fixed bracketsAndreas Gohr2011-01-12
| |
| * removed setter/getter to match coding styleAndreas Gohr2011-01-12
| | | | | | | | | | since we don't use setter/getters for the other options it doesn't make sense to have them for the keep-alive function
| * do not reuse errornous http connectionsTobias Sarnowski2011-01-12
| | | | | | | | | | | | | | As soon as something goes wrong while querying a http server do not reuse the same connection again, its state is undefined. In addition, check the connection for feof() before reusing it.
| * keep http connections application wide aliveTobias Sarnowski2011-01-12
| | | | | | | | | | | | Using a static context for the connection pool allows connection reuse throughout the whole application without additional changes in other places.
| * added keep-alive capabilities to the http clientTobias Sarnowski2011-01-12
| | | | | | | | | | | | | | | | The DokuHTTPClient is now able to keep connections alive. This feature is enabled by default. It can be disabled with $client->setKeepAlive(false); and asked with $client->isKeepAlive();.
* | tmpAdrian Lang2010-12-08
|/
* renamed variable initialization in HTTPClientAndreas Gohr2010-12-02
|
* Remove enc=utf-8 in VIM modeline as it is not allowed in VIM 7.3Michael Hamann2010-11-29
| | | | | | As of VIM 7.3 it is no longer possible to specify the encoding in the modeline. This gives an error message whenever such a file is opened, thus this commit removes the enc setting from the modeline.
* - fix phpdocElan Ruusamäe2010-10-07
|
* Small fixes / cleanupAdrian Lang2010-09-28
|
* ignore wrong content-encoding header FS#2037Andreas Gohr2010-09-24
| | | | | | | Some servers send a content-encoding for gzip files but do not encode the content themselves. This is IMHO wrong, this patch detects this and ignores the header. The request will return true but set a warning message in $this->error
* fixed request server port issue in httpclientai2010-09-17
|
* Convenience function in HTTPClientAndreas Gohr2010-08-02
| | | | | The new dget() method works accepts URL parameters as associative array (like the post() method).
* added proxy exception regexp FS#1247Andreas Gohr2010-06-26
|
* some more coding standard compliance updatesAndreas Gohr2010-01-15
|
* Emit less E_NOTICEs and E_STRICTsAdrian Lang2009-11-04
| | | | | | | | | | | | | Changes of behaviour are: * Allow the user name, title & description \e2\80\9c0\e2\80\9d * Default to Port 443 if using HTTPS * Set $INFO['isadmin'] and $INFO['ismanager'] to \e2\80\9cfalse\e2\80\9d even if no user is logged in * Do not pass empty fragment field in the event data for event ACTION_SHOW_REDIRECT * Handle chunked encoding in HTTPClient darcs-hash:20091104100115-e4919-5cf6397d4a457e3f98a8ca49fbdab03f2147721d.gz
* Handle relative redirects correctly FS#1741Andreas Gohr2009-09-04
| | | | | | | | Ignore-this: a85fdaa1c3aae0315a5f2a51ccbde5a0 Some servers (or scripts) do not send full qualified URLs in the Location header on redirects. darcs-hash:20090904152257-7ad00-a9749251c59e4235723ed18bcb9a8f4d3f4157ba.gz
* Added support for multipart/form-data in HTTPClientAndreas Gohr2009-08-30
| | | | | | Ignore-this: ce1342ac66bd276efc7791ff69a025a3 darcs-hash:20090830101808-7ad00-0176559a8f61f32288f274f20a047e7b5de7adaf.gz
* more robustness in gzip decoding in HTTPClient FS#1718Andreas Gohr2009-07-25
| | | | | | Ignore-this: f55bde6815d68e6e79117cdc5e4d1f77 darcs-hash:20090725123032-7ad00-9f3e6289fd73f385020334545d38e779dc104dd6.gz
* Moved HTTPCLIENT_REQUEST_SEND eventAndreas Gohr2009-06-05
| | | | | | | | | | Ignore-this: 8e7c6aae103f1bced33a74a2440c2fe8 This patch moves the HTTPCLIENT_REQUEST_SEND event from HTTPClient to DokuHTTPClient. This keeps the main HTTPClient class free from any DokuWiki specific code for easier reuse elsewhere. darcs-hash:20090605104603-7ad00-8e56892a7f20b4c7010fb2f8d54ae381f984dfc2.gz
* Don't accept gzip encoding in HTTP client when content is expected to be ↵Andreas Gohr2009-06-05
| | | | | | | | truncated FS#1710 Ignore-this: 6bd3d5f18e32356a0efd908962ce78e4 darcs-hash:20090605103531-7ad00-f3917837f33a09696ad41c19df641f0554cb9456.gz
* fixed limit typo in explode callAndreas Gohr2009-06-03
| | | | | | Ignore-this: fbd08a31ded98f7517ca679047845f6 darcs-hash:20090603163836-7ad00-aefb0a144874d2299cae47825eb72ab6413b4875.gz
* Clean up cookie handler in HTTPClientTom N Harris2009-05-28
| | | | darcs-hash:20090528215037-6942e-be53039ae592c50c481ea61528eca76db7e59328.gz