python - Wget command "Post" with --no-check-certificate failed :Certificate common name doesnt match -


i'm running on windows>visual studio>python , using wget in code.

i'm trying call api (post).

this code:

apiwget = [wgetinstallationfolder,'--no-check-certificate',"--post-data="% postfile,"--output-file="+tempreadwritepath + 'tempreadwritefile' + timenow + '.txt',"--wait=2","--content-on-error","--header="+header, "--output-document="+tempreadwritepath + 'tempreadwritefile' + timenow + '.txt',"--timeout=3","--tries=3", "--save-headers", "https://" +apigwip +"xxxxxxxx/"]    call(apiwget) 

and getting certificate common name doesn't match..

mention when call same api "get" works ok.


Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -