Commit Graph

9 Commits

Author SHA1 Message Date
Jacek Jendrzej
c30af8edf8 some inits
Origin commit data
------------------
Commit: f4f351e9ba
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-01-30 (Mon, 30 Jan 2017)
2017-01-30 17:22:41 +01:00
Jacek Jendrzej
5ef04827b2 src/gui/lua/lua_curl.cpp set dumb cookie for dumb 403 forbidden
Origin commit data
------------------
Commit: 293d32c776
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-01-28 (Sat, 28 Jan 2017)
2017-01-28 17:55:14 +01:00
Jacek Jendrzej
89c74ec99e src/gui/lua/lua_curl.cpp ACCEPT_ENCODING for gzip compressed data, need build libcurl with --with-zlib
Origin commit data
------------------
Commit: 7fee7784ae
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-12-22 (Thu, 22 Dec 2016)
2016-12-22 23:09:07 +01:00
Jacek Jendrzej
d90d5b3b53 add postfields and header curl option
Origin commit data
------------------
Commit: 35898bb7fd
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-03-25 (Fri, 25 Mar 2016)
2016-03-25 20:20:48 +01:00
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