Commit Graph

5 Commits

Author SHA1 Message Date
Michael Liebmann
4c4a775156 CLuaInstance: Fixes occasional problems when exiting the movie player
Reduces debug output in curl


Origin commit data
------------------
Commit: 31f2f1275a
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-25 (Fri, 25 Dec 2015)
2015-12-25 07:51:09 +01:00
Michael Liebmann
01a7c0b58b CLuaInstance: Fix and unified script function calls
- No api changes, code only


Origin commit data
------------------
Commit: 9e331ee4e3
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-23 (Wed, 23 Dec 2015)
2015-12-23 08:29:15 +01:00
Michael Liebmann
605506123d CLuaInstCurl: Fix compiler warning
Origin commit data
------------------
Commit: 6b6dff36d6
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-22 (Tue, 22 Dec 2015)
2015-12-22 13:14:18 +01:00
Michael Liebmann
ea55ab70e1 CLuaInstCurl::CurlDownload: Rework progress display
- Set Lua api version to 1.31


Origin commit data
------------------
Commit: c5bcbf490c
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-15 (Tue, 15 Dec 2015)
2015-12-15 00:34:13 +01:00
Michael Liebmann
708d737000 CLuaInstance: Add class for using libcurl
- Add simple download function
 - Set Lua api version to 1.24

	parameter	typ		default
	----------------------------------------
	url		string		required
	o, outputfile	string		when empty then save to string
					as secund return value
	A, userAgent	string		empty
	v, verbose	bool		false
	s, silent	bool		false
	connectTimeout	number		20
	ipv4		bool		false
	ipv6		bool		false
	useProxy	bool		true (default)
	followRedir	bool		true
	maxRedirs	number		20

Example:
	-- simplest program call:
	-- ----------------------
	local curl = curl.new()
	local ret, data = curl:download{url="http://example.com", o="/tmp/test.txt"}
	if ret ~= CURL.OK then
		print("Error: " .. data)
	end

	-- or --

	local curl = curl.new()
	local ret, data = curl:download{url="http://example.com"}
	if ret == CURL.OK then
		-- downloaded data
		print(data)
		..
	else
		print("Error: " .. data)
	end


Origin commit data
------------------
Commit: 4f9158c2a9
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-13 (Sun, 13 Dec 2015)
2015-12-13 23:36:52 +01:00