Commit Graph

44 Commits

Author SHA1 Message Date
Diego Nehab
613534c795 smtp.c was eatten by mime.c 2004-06-17 06:23:13 +00:00
Diego Nehab
9fc682a106 HTTP now has only one function. 2004-06-16 22:51:04 +00:00
Diego Nehab
574708380f Simplified HTTP module. 2004-06-16 21:56:23 +00:00
Diego Nehab
d46f7a09a7 Fixed smtp.lua loading.
Adjusted tftp module.
Added some comments.
2004-06-16 01:02:07 +00:00
Diego Nehab
58096449c6 Manual is almost done. HTTP is missing.
Implemented new distribution scheme.
Select is now purely C.
HTTP reimplemented seems faster dunno why.
LTN12 functions that coroutines fail gracefully.
2004-06-15 06:24:00 +00:00
Diego Nehab
9ed7f955e5 Só pra não perder se der merda. 2004-06-04 15:15:45 +00:00
Diego Nehab
5ca1049ab4 Fine tuning the "require" business. 2004-05-30 21:36:22 +00:00
Diego Nehab
c23240726e Changed require"luasocket" to require"socket". 2004-05-28 20:40:13 +00:00
Diego Nehab
6c565dd7c0 Almost there. 2004-05-28 07:47:41 +00:00
Diego Nehab
694edcc3c1 Committing with require. 2004-05-28 06:16:43 +00:00
Diego Nehab
888496aa82 FTP low-level working.
SMTP connection oriented working.
ltn12 improved.
2004-05-25 05:27:44 +00:00
Diego Nehab
e5a090b01c Using socket pumps in http.lua.
Adjusted socket.try.
2004-03-26 06:05:20 +00:00
Diego Nehab
5b279bac9e Settimeout wasn't returning 1...
http.lua is even cleaner. No trash in respt table.
2004-03-22 07:45:07 +00:00
Diego Nehab
1fa65d89ca Adjusted some details, got rid of old files, added some new. 2004-03-22 04:15:03 +00:00
Diego Nehab
4919a83d22 Changed receive function. Now uniform with all other functions. Returns nil
on error, return partial result in the end.

http.lua rewritten.
2004-03-21 07:50:15 +00:00
Diego Nehab
bcc0c2a9f0 New filter scheme.
ltn12 and mime updated.
smtp/ftp broken.
2004-03-16 06:42:53 +00:00
Diego Nehab
0b2542d1a6 Worked on the manual.
Implemented stuffing (needs test)
Added cddb and qp examples.
2004-02-04 14:29:11 +00:00
Diego Nehab
3f1712ed48 Added gethostname.
Cleaned up TODO.
Moved luasocket specific stuff from auxiliar.c to luasocket.c
2004-01-19 18:22:51 +00:00
Diego Nehab
5b8d7dec54 Updated some of the callbacks in callback.lua.
Update get.lua to use the new callbacks.
The old "code" module is now the "mime" module.
Updated all modules that depended on it.
Updated url.lua to use the new namespace scheme, and moved the
    escape and unescape functions that used to be in the code.lua module
    to it, since these are specific to urls.
Updated the callback entries in the manual.
2004-01-19 05:41:30 +00:00
Diego Nehab
6ac82d50ee Added proxy support to http.lua
Changed callback.lua module, but need more work.
Added local connect support.
2004-01-19 00:24:41 +00:00
Diego Nehab
3ea9271126 Added new filter to code.c, to convert between line conventions. 2004-01-18 08:59:21 +00:00
Diego Nehab
c8d58798f0 Trying to get connect-with-timeout to work. Darwin works... 2004-01-18 00:04:20 +00:00
Diego Nehab
89f3ecf782 http.lua updated. still needs proxy support.
code.lua updated. looks neat.
2004-01-16 07:06:31 +00:00
Diego Nehab
3febb302ad Killed a few bugs found by Tomas. 2003-11-27 00:30:54 +00:00
Diego Nehab
6789b83ff5 Starting to use RCS in princeton again. Not behind a firewall anymore. 2003-08-31 00:58:07 +00:00
Diego Nehab
c51d4acf1c Adjusted a few inconsistencies with the manual. 2003-08-16 00:06:04 +00:00
Diego Nehab
71f6bb60bf Finished implementation of LuaSocket 2.0 alpha on Linux.
Some testing still needed.
2003-06-26 18:47:49 +00:00
Diego Nehab
0f6c8d50a9 Porting to LUA 5.0 final 2003-05-25 01:54:13 +00:00
Diego Nehab
f18d1b7cd0 Closer to release... 2003-03-28 21:08:50 +00:00
Diego Nehab
53857360bb Finish port to Lua 5. Everything is working fine.
Still doesn't work in Windows.
2003-03-20 00:24:44 +00:00
Diego Nehab
7da19138e3 Faltam testes de ftp e smtp. O resto passa. 2002-12-03 07:20:34 +00:00
Diego Nehab
d7e80592a6 Already compiling and running for Lua 5.0 (alpha) 2002-12-02 23:34:41 +00:00
Diego Nehab
60e7bf48b0 Updated for Lua 4.1-w3.
Dealing with 100 response codes.
2002-07-08 21:01:18 +00:00
Diego Nehab
164d33894e Removed wrong host header in redirect.
Passing location header back to callee after redirect.
Added correct scheme test.
2001-09-26 20:40:13 +00:00
Diego Nehab
29ab78a74a HTTP.request was not returning response for body-less requests. 2001-09-18 20:22:59 +00:00
Diego Nehab
b73a66e635 Changed HTTP.get and HTTP.post to return status code instead of
status line information. Who cares about the rest of the line, anyways...
2001-09-18 18:41:01 +00:00
Diego Nehab
504ecdc0aa Simple HTTP functions can deal with table arguments also. 2001-09-12 18:16:09 +00:00
Diego Nehab
cb61077f7a Minor documentation changes.
Constants were moved to Public table.
Updated to use new fast concatenation module (concat.lua).
2001-08-07 19:50:04 +00:00
Diego Nehab
3143c58e0f Rewritten to comply to LTN7 (Modules & Packages).
As a result, there have been some API changes.
Parameter and return values are now passed inside tables.
Automatic redirection and automatic authentication are better controlled,
with loop detection.
Implementation is more RFCish, conforming to RFC2616.
URL parsing has been moved to an external library, to be shared with FTP.
2001-07-29 03:51:36 +00:00
Diego Nehab
d684be0cff Block size increased. 2001-06-07 20:52:34 +00:00
Diego Nehab
c53ad62b00 Streaming by callbacks implemented. 2001-06-06 20:55:45 +00:00
Diego Nehab
f1ae9db45e HTTP message bodies are transfered using a callback to return body parts
chunk by chunk.
2001-05-21 18:12:20 +00:00
Diego Nehab
bee46b39bf HTTP is now generic, with function http_request.
RFC is more strictly followed.
2001-01-25 22:01:37 +00:00
Diego Nehab
17c4d1c305 Initial revision 2000-12-29 22:15:09 +00:00