Commit Graph

11 Commits

Author SHA1 Message Date
Michael Liebmann
d1c1a544f3 CLuaInstCurl: Add script functions
- encodeUri
 - decodeUri
 - setUriData
 - Set Lua api version to 1.78


Origin commit data
------------------
Branch: ni/coolstream
Commit: 9feb8efd23
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-10-23 (Mon, 23 Oct 2017)



------------------
This commit was generated by Migit
2017-10-23 07:54:19 +02:00
Michael Liebmann
31b8da10bc CLuaInstCurl: Fix CurlDownload() to send POST data
- Set Lua api version to 1.77


Origin commit data
------------------
Branch: ni/coolstream
Commit: 100fa78952
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-10-23 (Mon, 23 Oct 2017)



------------------
This commit was generated by Migit
2017-10-23 07:54:19 +02:00
Jacek Jendrzej
d58f68cf69 some inits
Origin commit data
------------------
Branch: ni/coolstream
Commit: f4f351e9ba
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-01-30 (Mon, 30 Jan 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2017-01-30 17:22:41 +01:00
Jacek Jendrzej
02c234e6dd src/gui/lua/lua_curl.cpp set dumb cookie for dumb 403 forbidden
Origin commit data
------------------
Branch: ni/coolstream
Commit: 293d32c776
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-01-28 (Sat, 28 Jan 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2017-01-28 17:55:14 +01:00
Jacek Jendrzej
94fdc06b38 src/gui/lua/lua_curl.cpp ACCEPT_ENCODING for gzip compressed data, need build libcurl with --with-zlib
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7fee7784ae
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-12-22 (Thu, 22 Dec 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-12-22 23:09:07 +01:00
Jacek Jendrzej
92bee24774 add postfields and header curl option
Origin commit data
------------------
Branch: ni/coolstream
Commit: 35898bb7fd
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-03-25 (Fri, 25 Mar 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-03-25 20:20:48 +01:00
Michael Liebmann
ce3c73ee12 CLuaInstance: Fixes occasional problems when exiting the movie player
Reduces debug output in curl


Origin commit data
------------------
Branch: ni/coolstream
Commit: 31f2f1275a
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-25 (Fri, 25 Dec 2015)



------------------
This commit was generated by Migit
2015-12-25 07:51:09 +01:00
Michael Liebmann
4fcf18bad8 CLuaInstance: Fix and unified script function calls
- No api changes, code only


Origin commit data
------------------
Branch: ni/coolstream
Commit: 9e331ee4e3
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-23 (Wed, 23 Dec 2015)



------------------
This commit was generated by Migit
2015-12-23 08:29:15 +01:00
Michael Liebmann
944d938919 CLuaInstCurl: Fix compiler warning
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6b6dff36d6
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-22 (Tue, 22 Dec 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-12-22 13:14:18 +01:00
Michael Liebmann
04c190030d CLuaInstCurl::CurlDownload: Rework progress display
- Set Lua api version to 1.31


Origin commit data
------------------
Branch: ni/coolstream
Commit: c5bcbf490c
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-15 (Tue, 15 Dec 2015)



------------------
This commit was generated by Migit
2015-12-15 00:34:13 +01:00
Michael Liebmann
2f2e43ff34 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
------------------
Branch: ni/coolstream
Commit: 4f9158c2a9
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-13 (Sun, 13 Dec 2015)



------------------
This commit was generated by Migit
2015-12-13 23:36:52 +01:00