Questions tagged [internetsetoption]

16 questions
3
votes
1 answer

Identifying correct client certificate for ServerXMLHTTP.SetOption

I have three client certificates installed in Windows 7 and need to use a specific one to authenticate a ServerXMLHTTP60 call using VBA. Calling ServerXMLHTTP60.SetOption with the friendly name of the certificate returns with no error. But the…
2
votes
1 answer

How do I use InternetSetOption?

This question: Using Proxy with web browser control Told me to use "InternetSetOption". How do I use it? How might I implement it in code (example?)? Thanks!
Alper
  • 1
  • 12
  • 39
  • 78
2
votes
0 answers

InternetSetOption change connection limit

How can I change the connection limit programmatically by calling the InternetSetOption function on a null handle ? i.e., How to use INTERNET_OPTION_MAX_CONNS_PER_SERVER or INTERNET_OPTION_MAX_CONNS_PER_SERVER with InternetSetOption()
mmk_open
  • 1,005
  • 5
  • 18
  • 27
2
votes
1 answer

.NET c# service running as LocalSystem alters ProxyServer in registry, but browser's won't notice until (re)start

I have a .NET c# service running as LocalSystem on Windows10 64bit. It's job is to alter the "ProxyEnable" and "ProxyServer" values located under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings in the registry. It…
spaxxUnited
  • 625
  • 1
  • 7
  • 16
2
votes
1 answer

C# wininet InternetSetOption

I'm using How to clear System.Windows.Forms.WebBrowser session data? and it works as long as there is only one browser. Is it possible to give 2 web browser controls within the same application their own session? If so, would I just need to…
Dan
  • 25
  • 1
  • 4
2
votes
1 answer

Setting proxy settings in Windows with Python (using InternetSetOption)

I have written a little script that needs to be able to enable and disable proxy settings with Python. Right now I edit the registry to achieve this, but it doesn't seem to work on all versions of windows, so I would much rather use…
Basic Block
  • 729
  • 9
  • 17
1
vote
1 answer

Delphi. WinInet + cisco + NTLM. 12045 and 12057 errors

I connect to the corporate network through Cisco, and then through domain NTLM authorization to the corporate https site. So I go through the proxy (it’s enough to log in with the password once in IE) and the program goes to all sites except the…
aford
  • 21
  • 6
1
vote
0 answers

HTTPReqResp OnBeforePost change in Delphi 10.3

I have an event code that previously used the Data parameter, but in Delphi 10.3 this parameter was replaced. Before Delphi 10.3: procedure THTTPEvents.HTTPReqResp1BeforePost(const HTTPReqResp: THTTPReqResp; Data: Pointer); begin // set the…
1
vote
1 answer

WinInet InternetSetOption with INTERNET_OPTION_SUPPRESS_BEHAVIOR option not working as expected

Hi all and thanks for taking the time to read this. I have a c# application where I wish to override the default WinInet cookie settings. The goal is that even when the system WinInet cookie privacy settings are set to Block All, within my…
Ross
  • 11
  • 1
  • 3
1
vote
0 answers

Using InternetSetOption() to set both 32bit and 64bit browser proxy settings

I am using the class provided here to programmatically set the Internet Explorer proxy settings via InternetSetOption() from wininet.dll. However, if my project is set to target the x86 platform it will only change the proxy settings for the 32-bit…
James
  • 656
  • 2
  • 10
  • 24
1
vote
2 answers

Wininet's INTERNET_OPTION_IGNORE_OFFLINE doesn't work?

I'm trying to get Wininet to ignore Internet Explorer's "Work Offline" mode, for both HTTP and FTP. So I'm trying to use InternetSetOption() with INTERNET_OPTION_IGNORE_OFFLINE. The documentation says "This is used by InternetQueryOption and…
mhenry1384
  • 7,538
  • 5
  • 55
  • 74
1
vote
1 answer

InternetSetOption deletes my registry value - AutoConfigURL

I am settings proxy pac file using c#, I understand that I need to set values in HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\DefaultConnectionSettings and in HKCU\Software\Microsoft\Windows\CurrentVersion\Internet…
Ron Gross
  • 1,474
  • 5
  • 19
  • 34
1
vote
2 answers

Enable proxy by editing registry in real time in c#

This is the code that I use to enable the proxy. It has worked fine on all versions of windows up until Server 2008 R2 (Windows 7 Kernal). Now it only works the fist time. I start my application and enable the proxy and that works fine. I then…
Jacob Adams
  • 731
  • 1
  • 10
  • 20
0
votes
1 answer

How to use InternetSetOption to ignore self signed certificates

I can't seem to figure out how to use InternetSetOption() In Setting and Retrieving Internet Options, the example is using new INTERNET_PER_CONN_OPTION[3]; to allocate space for the INTERNET_PER_CONN_OPTION structs, but as far as I know C does not…
loaded_dypper
  • 262
  • 3
  • 12
0
votes
1 answer

How to set INTERNET_OPTION_MAX_CONNS_PER_SERVER option using InternetSetOption in c#?

I am new to .NET,c# and windows programming. I want to increase the max number of connections that the .NET web browser control can create per server. I found that by changing INTERNET_OPTION_MAX_CONNS_PER_SERVER option using InternetSetOption …
1
2