|
|
@ -915,7 +915,7 @@ def WebURLConnectFolder(inMethodStr, inURLStr, inMatchTypeStr, inFolderPathStr,
|
|
|
|
"MatchType": inMatchTypeStr, # "BeginWith|Contains|Equal|EqualCase",
|
|
|
|
"MatchType": inMatchTypeStr, # "BeginWith|Contains|Equal|EqualCase",
|
|
|
|
# "ResponseFilePath": "", #Absolute or relative path
|
|
|
|
# "ResponseFilePath": "", #Absolute or relative path
|
|
|
|
"ResponseFolderPath": lFolderPathStr, # Absolute or relative path
|
|
|
|
"ResponseFolderPath": lFolderPathStr, # Absolute or relative path
|
|
|
|
"ResponseContentType": "application/octet-stream", #HTTP Content-type
|
|
|
|
"ResponseContentType": None, #HTTP Content-type
|
|
|
|
#"ResponseDefRequestGlobal": inDef #Function with str result
|
|
|
|
#"ResponseDefRequestGlobal": inDef #Function with str result
|
|
|
|
"UACBool": inUACBool,
|
|
|
|
"UACBool": inUACBool,
|
|
|
|
"UseCacheBool": inUseCacheBool
|
|
|
|
"UseCacheBool": inUseCacheBool
|
|
|
@ -923,7 +923,7 @@ def WebURLConnectFolder(inMethodStr, inURLStr, inMatchTypeStr, inFolderPathStr,
|
|
|
|
inGSettings["ServerDict"]["URLList"].append(lURLItemDict)
|
|
|
|
inGSettings["ServerDict"]["URLList"].append(lURLItemDict)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def WebURLConnectFile(inMethodStr, inURLStr, inMatchTypeStr, inFilePathStr, inContentTypeStr="application/octet-stream", inGSettings = None, inUACBool = None, inUseCacheBool = False):
|
|
|
|
def WebURLConnectFile(inMethodStr, inURLStr, inMatchTypeStr, inFilePathStr, inContentTypeStr=None, inGSettings = None, inUACBool = None, inUseCacheBool = False):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
Connect URL to File
|
|
|
|
Connect URL to File
|
|
|
|
"inMethodStr":"GET|POST",
|
|
|
|
"inMethodStr":"GET|POST",
|
|
|
@ -936,7 +936,7 @@ def WebURLConnectFile(inMethodStr, inURLStr, inMatchTypeStr, inFilePathStr, inCo
|
|
|
|
:param inURLStr:
|
|
|
|
:param inURLStr:
|
|
|
|
:param inMatchTypeStr:
|
|
|
|
:param inMatchTypeStr:
|
|
|
|
:param inFilePathStr:
|
|
|
|
:param inFilePathStr:
|
|
|
|
:param inContentTypeStr:
|
|
|
|
:param inContentTypeStr: If none - autodetect
|
|
|
|
:param inUACBool: default: None; True - check user access before do this URL item. None - get Server flag if ask user
|
|
|
|
:param inUACBool: default: None; True - check user access before do this URL item. None - get Server flag if ask user
|
|
|
|
:param inUseCacheBool: True - cache this page - dont open ever
|
|
|
|
:param inUseCacheBool: True - cache this page - dont open ever
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|