Sending https request with inetc

So i tried to send some POST data to 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 url is at https the following message always appears:

There was an error submitting information: SendRequest Error

      

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

Am I missing something about working with https with inetc?

thank

+1


source to share


1 answer


INetC is supposed to use flags SECURITY_FLAG_IGNORE_UNKNOWN_CA + SECURITY_FLAG_IGNORE_REVOCATION

on https urls and there seems to be some kind of re-authentication code there, so I'm not sure why it doesn't work.



There are other flags like SECURITY_FLAG_IGNORE_CERT_CN_INVALID

it doesn't use, maybe you could request a new / nosecurity switch here ...

+1


source







All Articles