aboutsummaryrefslogtreecommitdiffstats
path: root/net/http.lua
Commit message (Collapse)AuthorAgeFilesLines
* mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit ↵Matthew Wild2013-04-221-4/+4
| | | | traceback function), to make it clearer where an error occured
* net.http: When HTTP request fails due to a network or SSL error, call the ↵Matthew Wild2013-04-181-7/+12
| | | | callback to let it know
* net.http: Swap response and request parameters passed to callback (will ↵Matthew Wild2013-04-121-2/+1
| | | | break some modules)
* net.http: Switch from util.httpstream to net.http.parser, introduces small ↵Matthew Wild2013-04-111-1/+1
| | | | but backwards-incompatible API changes - see http://prosody.im/doc/developers/http
* net.http, util.http: Move definitions of urlencode/decode and ↵Matthew Wild2013-04-111-41/+7
| | | | formencode/decode to util.http (possible to use them without unnecessary network-related dependencies)
* net.http: Throw error when connecting to a http:// URL without LuaSec availableMatthew Wild2013-04-081-0/+5
|
* net.http: Disable SSLv2 support for HTTPS connectionsMatthew Wild2013-03-201-1/+1
|
* net.http: Allow passing an SSL context or options table to be used for HTTPS ↵Matthew Wild2013-03-201-1/+6
| | | | requests (thanks daurnimator)
* Merge with ZashMatthew Wild2012-07-221-2/+2
|\
| * net.http: Use base64 from util.encodings instead of luasocketKim Alvefur2012-07-071-2/+2
| |
* | net.http: Don't call ondisconnect manually, net.server now calls it on closeMatthew Wild2012-07-221-1/+0
|/
* net.http: Fix urlencode to not encode unreserved characters, so I can ↵Matthew Wild2012-05-121-1/+1
| | | | guiltlessly rant about people who do.
* net.http, httpclient_listener: Merge listener into net.httpMatthew Wild2012-01-231-5/+47
|
* net.http: Pass response object to callbacks (feels hacky, should this be ↵Matthew Wild2012-01-171-2/+2
| | | | passed *instead of* the request?)
* net.http: Remove extra space after method in request status line for POST.Waqas Hussain2011-08-311-1/+1
|
* net.http: Convert port to a number (for custom port in URL)Matthew Wild2011-08-221-1/+1
|
* net.http: Support for k->v maps in http.formencodeMatthew Wild2011-08-201-2/+8
|
* net.http, httpclient_listener: Move request sending from net.http to ↵Matthew Wild2011-08-201-38/+21
| | | | onconnect() handler, and add support for HTTPS requests to net.http
* net.http: Whitespace fixesMatthew Wild2011-08-201-4/+8
|
* net.http: Small fix to prevent traceback when connection fails before ↵Matthew Wild2011-08-201-0/+1
| | | | sending the request
* net.http: Add formdecode to decode an urlencoded formMatthew Wild2011-08-101-0/+13
|
* net.http: Removed old HTTP parser, and updated to use util.httpstream.Waqas Hussain2010-11-061-91/+14
|
* Monster whitespace commit (beware the whitespace monster).Waqas Hussain2010-10-161-5/+5
|
* net.http: Add http.formencode() for www-form-urlencoded from an array of ↵Matthew Wild2010-08-271-2/+20
| | | | fields (thanks dersd)
* Merge 0.6->0.7Matthew Wild2010-03-221-2/+2
|\
| * Update copyright headers for 2010Matthew Wild2010-03-221-2/+2
| |
| * net.http: destroy_request(): Pass request.handler to disconnect() listener ↵Matthew Wild2010-03-031-1/+1
| | | | | | | | to fix small leak
| * net.http: Close connection when invalid status line is received from the serverMatthew Wild2010-02-191-1/+4
| |
| * net.http: Don't re-destroy a request when the connection is closedMatthew Wild2010-02-191-0/+1
| |
| * net.http: Port commit 2f235c57d713 to net.http to fix headers in responses ↵Matthew Wild2010-02-191-5/+14
| | | | | | | | (thanks dersd)
| * net.http: Don't expect the body on redirectsMatthew Wild2009-12-101-1/+1
| |
* | net.http: Update print()s to log()s - don't ask how this came to be, I have ↵Matthew Wild2010-02-191-8/+7
| | | | | | | | no idea :)
* | net.http: destroy_request(): Remove update for new server API, pass ↵Matthew Wild2010-02-191-2/+3
| | | | | | | | request.handler instead of request.conn to ondisconnect
* | net.http: Close connection when invalid status line is received from the serverMatthew Wild2010-02-191-1/+4
| |
* | net.http: Don't re-destroy a request when the connection is closedMatthew Wild2010-02-191-0/+1
| |
* | net.http: Port commit 2f235c57d713 to net.http to fix headers in responses ↵Matthew Wild2010-02-191-5/+14
| | | | | | | | (thanks dersd)
* | net.http: Don't expect the body on redirectsMatthew Wild2009-12-101-1/+1
| |
* | net.httpserver, net.http: Update for new net.server API (untested)Matthew Wild2009-11-221-2/+2
|/
* Add copyright header to those files missing oneMatthew Wild2009-07-101-0/+8
|
* net.http: (Re-)add url[en|de]code functionsMatthew Wild2009-06-121-4/+5
|
* Merge with 0.4Matthew Wild2009-05-041-1/+0
|\
| * net.http, net.httpserver: Remove urlcodes table... it really isn't needed ↵Matthew Wild2009-05-041-1/+0
| | | | | | | | (thanks Jan Harkes)
* | net.http: Fix potential nil accessMatthew Wild2009-04-221-2/+2
|/
* Fixed: net/http.lua: HTTP request callback wasn't being called on some errorsWaqas Hussain2009-03-301-0/+1
|
* net.http: Don't throw error on invalid URLs. Fixes #56.Matthew Wild2009-03-211-0/+9
|
* Port to new server.lua, quite some changes, but I believe everything to be ↵Matthew Wild2009-01-171-1/+1
| | | | working
* net.http: custom_headers -> headersMatthew Wild2009-01-161-1/+1
|
* net.http: Don't log content from serverMatthew Wild2009-01-151-1/+1
|
* net.http: Fix to send query part of URL to serverMatthew Wild2009-01-151-1/+8
|
* net.http: Fix for callbacks being triggered multiple times for the same requestMatthew Wild2009-01-141-1/+3
|