How to set Option property of the WinHTTPRequest object

LamzaLamza Member Posts: 8
I'm trying to establish a communication with a web service from NAV, using WinHTTPRequest Automation object.

I don't want to use certification validation and I know that there is a option called WINHTTP_OPTION_SECURITY_FLAGS which has a flag SECURITY_FLAG_IGNORE_UNKNOWN_CA, which I've found here - http://msdn.microsoft.com/en-us/library ... 85%29.aspx. The problem is I don't know how to set the property WinHTTPRequest.option? What syntax and what values should I use?

Comments

  • pmusupmusu Member Posts: 55
    Lamza wrote:
    I'm trying to establish a communication with a web service from NAV, using WinHTTPRequest Automation object.

    I don't want to use certification validation and I know that there is a option called WINHTTP_OPTION_SECURITY_FLAGS which has a flag SECURITY_FLAG_IGNORE_UNKNOWN_CA, which I've found here - http://msdn.microsoft.com/en-us/library ... 85%29.aspx. The problem is I don't know how to set the property WinHTTPRequest.option? What syntax and what values should I use?

    Hi,

    I am having a similar problem. Has anyone had any success with this?

    Thanks in advance
    Peter
Sign In or Register to comment.