mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
lua_curl: sync with tangocash
Origin commit data
------------------
Commit: 3b94c1740e
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-10-07 (Mon, 07 Oct 2024)
Origin message was:
------------------
- lua_curl: sync with tangocash
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -145,6 +145,7 @@ int CLuaInstCurl::CurlDownload(lua_State *L)
|
|||||||
as secund return value
|
as secund return value
|
||||||
A, userAgent string empty
|
A, userAgent string empty
|
||||||
P, postfields string empty
|
P, postfields string empty
|
||||||
|
data, post-data string empty
|
||||||
v, verbose bool false
|
v, verbose bool false
|
||||||
s, silent bool false
|
s, silent bool false
|
||||||
h, header bool false
|
h, header bool false
|
||||||
@@ -230,7 +231,8 @@ Example:
|
|||||||
tableLookup(L, "A", userAgent) || tableLookup(L, "userAgent", userAgent);
|
tableLookup(L, "A", userAgent) || tableLookup(L, "userAgent", userAgent);
|
||||||
|
|
||||||
std::string postfields = "";//specify data to POST to server
|
std::string postfields = "";//specify data to POST to server
|
||||||
tableLookup(L, "P", postfields) || tableLookup(L, "postfields", postfields);
|
tableLookup(L, "P", postfields) || tableLookup(L, "postfields", postfields) ||
|
||||||
|
tableLookup(L, "data", postfields) || tableLookup(L, "post-data", postfields);
|
||||||
|
|
||||||
bool verbose = false;
|
bool verbose = false;
|
||||||
tableLookup(L, "v", verbose) || tableLookup(L, "verbose", verbose);
|
tableLookup(L, "v", verbose) || tableLookup(L, "verbose", verbose);
|
||||||
|
Reference in New Issue
Block a user