Commit Graph

63 Commits (b7ed261e7dfd367f3bc5a8bef654b91ba74feb97)

Author SHA1 Message Date
Matthew Wild c5d0345453 certmanager, net.http: Disable SSLv3 by default 11 years ago
Matthew Wild 58edf57b1f net.http, net.http.server, mod_c2s, mod_s2s, mod_component, mod_admin_telnet, mod_net_multiplex: Add ondetach to release connection from 'sessions' table (or equivalent) 12 years ago
Matthew Wild 741e58831a net.http: assert() for socket creation success so it doesn't silently fail (thanks daurnimator) 12 years ago
Matthew Wild 871b368671 net.http: Include port number (when non-standard) in the Host header of outgoing requests, as per the HTTP RFC 13 years ago
Matthew Wild 70e81c21b7 mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit traceback function), to make it clearer where an error occured 13 years ago
Matthew Wild c63dc9181d mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit traceback function), to make it clearer where an error occured 13 years ago
Matthew Wild 8432300448 net.http: When HTTP request fails due to a network or SSL error, call the callback to let it know 13 years ago
Matthew Wild 398145c109 net.http: Swap response and request parameters passed to callback (will break some modules) 13 years ago
Matthew Wild 607cae48bf net.http: Switch from util.httpstream to net.http.parser, introduces small but backwards-incompatible API changes - see http://prosody.im/doc/developers/http 13 years ago
Matthew Wild da672e131f net.http, util.http: Move definitions of urlencode/decode and formencode/decode to util.http (possible to use them without unnecessary network-related dependencies) 13 years ago
Matthew Wild 09e6b19e4f net.http: Throw error when connecting to a http:// URL without LuaSec available 13 years ago
Matthew Wild c237eea830 net.http: Disable SSLv2 support for HTTPS connections 13 years ago
Matthew Wild f7e05e902a net.http: Allow passing an SSL context or options table to be used for HTTPS requests (thanks daurnimator) 13 years ago
Matthew Wild 16d3a88097 net.http: Don't call ondisconnect manually, net.server now calls it on close 14 years ago
Kim Alvefur 32fc3a5067 net.http: Use base64 from util.encodings instead of luasocket 14 years ago
Matthew Wild 7e6b8c8f26 net.http: Fix urlencode to not encode unreserved characters, so I can guiltlessly rant about people who do. 14 years ago
Matthew Wild e9a6d6dd41 net.http, httpclient_listener: Merge listener into net.http 14 years ago
Matthew Wild bf028da1af net.http: Pass response object to callbacks (feels hacky, should this be passed *instead of* the request?) 14 years ago
Waqas Hussain 807c9de35d net.http: Remove extra space after method in request status line for POST. 15 years ago
Matthew Wild 45ef372127 net.http: Convert port to a number (for custom port in URL) 15 years ago
Matthew Wild e3d1510338 net.http: Support for k->v maps in http.formencode 15 years ago
Matthew Wild 3c84072287 net.http, httpclient_listener: Move request sending from net.http to onconnect() handler, and add support for HTTPS requests to net.http 15 years ago
Matthew Wild cbc11b51bb net.http: Whitespace fixes 15 years ago
Matthew Wild 4158a96b3a net.http: Small fix to prevent traceback when connection fails before sending the request 15 years ago
Matthew Wild fad05ab1c7 net.http: Add formdecode to decode an urlencoded form 15 years ago
Waqas Hussain 8e491a46d7 net.http: Removed old HTTP parser, and updated to use util.httpstream. 15 years ago
Waqas Hussain b7e51a203d Monster whitespace commit (beware the whitespace monster). 15 years ago
Matthew Wild e724cea395 net.http: Add http.formencode() for www-form-urlencoded from an array of fields (thanks dersd) 16 years ago
Matthew Wild 2bc0606453 Update copyright headers for 2010 16 years ago
Matthew Wild dd726b487b net.http: Update print()s to log()s - don't ask how this came to be, I have no idea :) 16 years ago
Matthew Wild 4936167a32 net.http: destroy_request(): Remove update for new server API, pass request.handler instead of request.conn to ondisconnect 16 years ago
Matthew Wild 463a83ee3f net.http: Close connection when invalid status line is received from the server 16 years ago
Matthew Wild 7148417dbb net.http: Don't re-destroy a request when the connection is closed 16 years ago
Matthew Wild 73ce21ca9f net.http: Port commit 2f235c57d713 to net.http to fix headers in responses (thanks dersd) 16 years ago
Matthew Wild 032e7149c6 net.http: destroy_request(): Pass request.handler to disconnect() listener to fix small leak 16 years ago
Matthew Wild ead6371721 net.http: Close connection when invalid status line is received from the server 16 years ago
Matthew Wild 79382a2305 net.http: Don't re-destroy a request when the connection is closed 16 years ago
Matthew Wild 1e2242d319 net.http: Port commit 2f235c57d713 to net.http to fix headers in responses (thanks dersd) 16 years ago
Matthew Wild 1ea522dd46 net.http: Don't expect the body on redirects 16 years ago
Matthew Wild 883e2bd682 net.http: Don't expect the body on redirects 16 years ago
Matthew Wild 54d5d4f69d net.httpserver, net.http: Update for new net.server API (untested) 16 years ago
Matthew Wild e45610ce6e Add copyright header to those files missing one 17 years ago
Matthew Wild 12d17990b6 net.http: (Re-)add url[en|de]code functions 17 years ago
Matthew Wild ef5e994b1f net.http, net.httpserver: Remove urlcodes table... it really isn't needed (thanks Jan Harkes) 17 years ago
Matthew Wild c8addd5dd0 net.http: Fix potential nil access 17 years ago
Waqas Hussain 9357b3fc3e Fixed: net/http.lua: HTTP request callback wasn't being called on some errors 17 years ago
Matthew Wild 51fd2073f8 net.http: Don't throw error on invalid URLs. Fixes #56. 17 years ago
Matthew Wild c0dbcb4389 Port to new server.lua, quite some changes, but I believe everything to be working 17 years ago
Matthew Wild 5da8d03077 net.http: custom_headers -> headers 17 years ago
Matthew Wild b0f1c38d96 net.http: Don't log content from server 17 years ago