Pergunta

So I tried to send some POST data to an url using this code:

StrCpy $PostStr "a=input1&c=input2"
inetc::post $PostStr "https://url/index.php" "$INSTDIR\result.html" /END

Pop $0
StrCmpS $0 "OK" success failedToSubmit
failedToSubmit:
  MessageBox MB_OK|MB_ICONEXCLAMATION "There was an error submitting information: $0"
Abort

success:
  MessageBox MB_OK|MB_ICONINFORMATION "Your information was successfully received"

but when the url is in https, the following message always appeared:

There was an error submitting information: SendRequest Error

I tried this with http, and it run smoothly. The server php script does nothing but echo the POST variable.

Have I missed something in dealing with the https with inetc?

Thanks

Foi útil?

Solução

INetC should be using the SECURITY_FLAG_IGNORE_UNKNOWN_CA + SECURITY_FLAG_IGNORE_REVOCATION flags on https URLs and there seems to be some kind of auth retry code in there so I'm not sure why it is not working.

There are other flags like SECURITY_FLAG_IGNORE_CERT_CN_INVALID that it is not using, maybe you could request a new /nosecurity switch here...

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top