Questions tagged [wininet]

The Windows Internet (WinINet) API enables Windows applications to interact with FTP, and HTTP protocols to access Internet resources.

The Windows Internet (WinINet) application programming interface (API) enables applications to interact with FTP, and HTTP protocols to access Internet resources. As standards evolve, these functions handle the changes in underlying protocols, enabling them to maintain consistent behavior.

591 questions
5
votes
2 answers

How to tell WinINet to use IE's proxy server credentials

In internet explorer i can set the proxy server. Then, when accessing the internet IE will prompt me for proxy credentials and optionally save them. New instances of IE pick up the credentials. I can also see the credentials are saved in the…
julioA
  • 265
  • 3
  • 6
5
votes
4 answers

How can I prevent URLDownloadToFile from retrieving from the cache?

I am using URLDownloadToFile to retrieve a file from a website. Subsequent calls return the original file rather than an updated version. I assume it is retrieving a cached version.
AlanKley
  • 4,592
  • 8
  • 40
  • 53
5
votes
3 answers

How to clear cookie through WinINet function?

Using WinINet InternetGetCookie and InternetSetCookie functions, it's pretty straightforward to get and set cookie inside the application which makes a web request through WinINet. However, I could not so far find a way to clear cookie. Calling…
Kei
  • 1,596
  • 1
  • 16
  • 25
5
votes
1 answer

Determine the name of a file to download

I need to download a file from a url which has format similar to http://server.com/settings/files/1 when I paste this url in a web-browser this can determine the name of the file to download in this case scheme_563.txt, my question is how I can…
Salvador
  • 16,132
  • 33
  • 143
  • 245
5
votes
1 answer

How to I get Fiddler to NOT automatically proxy WinINET Connections?

I want to use Fiddler for a specific application that will manually turn the proxy on and off for (Firefox 3.6 using FiddlerHook). That is the only application I want proxied, but I can't seem to find a way to get Fiddler to not set itself as the…
studgeek
  • 14,272
  • 6
  • 84
  • 96
5
votes
1 answer

TCP Keep Alive on idHttpServer (server) and wininet (client)

I have a webserver application developed using idHttpServer. When a client connects do my webserver and, for some unknown reason, got disconnect (not a gracefully disconnect) my webserver does not get notified. I know this is the normal behavior but…
Rafael Colucci
  • 6,018
  • 4
  • 52
  • 121
5
votes
1 answer

InternetOpenUrl only returns after entire HTTP response is downloaded

I am writing a download file utility using WinINET, and have noticed (especially on large downloads), that the WinINET InternetOpenUrl() call only returns after the entire HTTP response has been downloaded. I confirmed this by using the Charles…
brianb
  • 3,510
  • 2
  • 18
  • 15
5
votes
4 answers

Is there any good example of http upload using WinInet c++ library

I cannot get my code to work :/
michael
  • 3,250
  • 10
  • 43
  • 58
5
votes
0 answers

Is Dot Net HttpClient Unexpectedly Caching Responses?

I'm attempting to write a curl-like tool that demonstrates the effect of various HTTP caching headers on dot net's HttpClient class. In my initial attempt I'm pointing the tool at one of my internal web services that does not specify any caching…
Larry Lustig
  • 49,320
  • 14
  • 110
  • 160
5
votes
2 answers

WinINet asynchronous mode disaster

Sorry for such a long question. It's just I've spent several days trying to solve my problem, and I'm exhausted. I'm trying to use WinINet in an asynchronous mode. And I must say... this is simply insane. I really can't understand this. It does so…
valdo
  • 12,632
  • 2
  • 37
  • 67
5
votes
1 answer

How to enforce tls 1.x using wininet

I'm using wininet library in my aplication, after it turned out that sslv3 loooves poodle, some websites turn it off, and my aplication does not working on some PC's unless user set in Internet settings in windows to use TLS 1.X. Does anyone know…
whd
  • 1,819
  • 1
  • 21
  • 52
5
votes
2 answers

Soap Delphi Client end with a timeout for a 1MB call

we are developing a SOAP webservice (Apache/PHP). All run well for small size calls, but with a 1Mb soap call (the HTTPS call size is 1MB) our Delphi Soap client stop with a timeout on all PC but one, and our PHP clients run well with a…
Cédric Girard
  • 3,358
  • 7
  • 37
  • 52
5
votes
4 answers

Override IP in HTTP Request

Looking for a way to issue an HTTPwebrequest, or use the browser control, or winhttp to make a request to a URL, but override the IP address it connects to from the DNS lookup to a specific one. Trying to do something similar to the HOSTS file, but…
5
votes
2 answers

Creating robust HTTP connection for dummy users with WinINET

I'm making a program which downloads a simple file from internet on Windows, using Wininet family API because I want to utilize its IE-compatible proxy behavior. As you all know, current IE has several proxy settings: auto-detect (WPAD),…
Francis
  • 11,388
  • 2
  • 33
  • 37
5
votes
1 answer

How can I download a huge file via TIdHTTP?

I use this code to download small files: Var ms:TMemoryStream; begin ms:=TMemoryStream.Create; Idhttp1.get('http://mydomain.com/myfile.zip',ms); ms.SaveToFile('myfile.zip'); ms.Free; end; But file is saved in RAM before storing to disk,…
Red October
  • 689
  • 2
  • 12
  • 31
1
2
3
39 40