- Nov 06, 2012
-
-
Andreas Gohr authored
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.
-
- Jun 27, 2012
-
-
Tom N Harris authored
-
Tom N Harris authored
-
- Jun 20, 2012
-
-
Tom N Harris authored
-
Tom N Harris authored
-
Tom N Harris authored
-
Tom N Harris authored
-
- Jun 19, 2012
-
-
Tom N Harris authored
-
Tom N Harris authored
-
- Jun 18, 2012
-
-
Tom N Harris authored
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.
-
Tom N Harris authored
This is the first step in refactoring the socket reader to be more resilient and easier to debug.
-
Tom N Harris authored
-
Tom N Harris authored
-
Tom N Harris authored
-
- Mar 18, 2012
-
-
Tim Roes authored
-
- Mar 16, 2012
-
-
Andreas Gohr authored
-
- Feb 22, 2012
-
-
Andreas Gohr authored
The previous regexp approach failed for empty headers.
-
- Nov 27, 2011
-
-
Andreas Gohr authored
On certain environments, stream_select might produce temporary errors when file descriptors are running scarce.
-
- Aug 21, 2011
-
-
Andreas Gohr authored
-
- Feb 06, 2011
-
-
Andreas Gohr authored
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.
-
- Jan 12, 2011
-
-
Andreas Gohr authored
-
Andreas Gohr authored
since we don't use setter/getters for the other options it doesn't make sense to have them for the keep-alive function
-
Tobias Sarnowski authored
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.
-
Tobias Sarnowski authored
Using a static context for the connection pool allows connection reuse throughout the whole application without additional changes in other places.
-
Tobias Sarnowski authored
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();.
-
- Dec 08, 2010
-
-
Adrian Lang authored
-
- Dec 02, 2010
-
-
Andreas Gohr authored
-
- Nov 29, 2010
-
-
Michael Hamann authored
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.
-
- Oct 07, 2010
-
-
Elan Ruusamäe authored
-
- Sep 28, 2010
-
-
Adrian Lang authored
-
- Sep 24, 2010
-
-
Andreas Gohr authored
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
-
- Sep 17, 2010
-
-
ai authored
-
- Aug 02, 2010
-
-
Andreas Gohr authored
The new dget() method works accepts URL parameters as associative array (like the post() method).
-
- Jun 26, 2010
-
-
Andreas Gohr authored
-
- Jan 15, 2010
-
-
Andreas Gohr authored
-
- Nov 04, 2009
-
-
Adrian Lang authored
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
-
- Sep 04, 2009
-
-
Andreas Gohr authored
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
-
- Aug 30, 2009
-
-
Andreas Gohr authored
Ignore-this: ce1342ac66bd276efc7791ff69a025a3 darcs-hash:20090830101808-7ad00-0176559a8f61f32288f274f20a047e7b5de7adaf.gz
-
- Jul 25, 2009
-
-
Andreas Gohr authored
Ignore-this: f55bde6815d68e6e79117cdc5e4d1f77 darcs-hash:20090725123032-7ad00-9f3e6289fd73f385020334545d38e779dc104dd6.gz
-
- Jun 05, 2009
-
-
Andreas Gohr authored
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
-