Home > Software engineering >  How to set vb.net WinHttp user_agent? I turned vb6, error 3 "WinHttpRequestOption" not &qu
How to set vb.net WinHttp user_agent? I turned vb6, error 3 "WinHttpRequestOption" not &qu

Time:10-29

The following code this error:
Error 3 "WinHttpRequestOption is not a member of the" String ", "

. XML=New WinHttp WinHttpRequest
 XML. Option (WinHttp. WinHttpRequestOption. WinHttpRequestOption_UserAgentString)="Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1) "

How to set the user-agent inside the vb.net?
Thanks!
  • Related