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

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

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

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -