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.

559 questions
-1
votes
1 answer

Delphi WinINet Api encoding

I was trying out this function to perform a GET request using Delphi and the WinIApi. The request itself works, but unforunately the response is encoded wrong. I haven't fully worked out how it is encoded, but when it returns ≻牯杩湩㨢㤢⸳㤱⸸ㄲ⸹㤵索 and I…
moronator
  • 124
  • 1
  • 8
-1
votes
2 answers

Connecting to Internet?

I'm having issues with connecting to the Internet using python. I am on a corporate network that uses a PAC file to set proxies. Now this would be fine if I could find and parse the PAC to get what I need but I cannot. The oddity: R can connect to…
fūjin
  • 179
  • 9
-1
votes
2 answers

Verify that ipconfig was applied

I am currently developing a tool that automatically connects and authenticates users to certain wireless hotspots under given circumstances. To test if the device is behind a captive portal i send a http request via wininet and check if it gets…
Paul
  • 4,879
  • 1
  • 20
  • 38
-1
votes
3 answers

Wion32's HttpSendRequest : ERROR_INTERNET_INCORRECT_HANDLE_STAT

I have C++ Win32 app that uses HttpSendRequest to request some URL (via https). It worked OK earlier; but then errors ERROR_INTERNET_INCORRECT_HANDLE_STATE began happen. Why these ones? Any ideas?
KellyLynch
  • 281
  • 2
  • 9
  • 29
-1
votes
1 answer

download and resuming download using winInet.h or urlmon.h?

I'm using winInet Function to download files from internet and here is question: How I can resume aborted download? is there any very simple sample? I read http://www.clevercomponents.com/articles/article015/resuming.asp but it does not work! I just…
Jack
  • 31
  • 1
  • 2
-1
votes
1 answer

wininet.h not compiling using GNU GCC compiler with code blocks

i'm getting a peculiar issue when trying to compile my program. I don't have a huge ammount of experience with C++. I'm trying to simple create a function that can FTP put a file upto my plain FTP server. I'm using codeblocks IDE, and the GNU GCC…
user3407675
  • 107
  • 1
  • 7
-1
votes
1 answer

Why does InternetReadFile not grab the whole source of the website?

So i am coding a project with WinInet.h library with win32 and I am using string comparisons to check whether a certain string is in the source code except InternetReadFile isn't grabbing the entire source code, it only grabs the top like 20%, i…
-1
votes
1 answer

FtpGetFile WinINEt never returns

I'm experiencing a curious problem (very strange, let me say hehe). During a FTP download of an EXE file (24 MB), if the connection is ever interrupted, it appears that the function FtpGetFile of the WinINEt library has a bug and it never returns.…
cabreracanal
  • 884
  • 1
  • 13
  • 33
-1
votes
1 answer

C++ FTP WinINet, can't download folder from FTP server

I'm trying to download the folder named "public_html" but it's not doing anything in my program, here is my code. int main(){ cerr<<"Hello"<
-2
votes
1 answer

WinInet store read file on a char/string c++

#include #pragma comment(lib, "wininet") void download(std::string domain, std::string url) { HINTERNET hIntSession = InternetOpenA("MyApp", INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0); HINTERNET hHttpSession =…
user1913644
  • 137
  • 1
  • 8
-2
votes
1 answer

inet_addr() returning the long for IP in reverse order

I am trying to write a function to check if my ip is within subnet mask, as below: - bool isIPinSubnet(CString ip, CString network, int keepbits) { ULONG ip_addr = 0; ULONG network_addr = 0; UINT32 mask_addr = ~(~(UINT32)(0) >>…
foobar
  • 2,596
  • 1
  • 22
  • 48
-2
votes
1 answer

Resume Ability for a simple Download Manager (C++ - WinInet)

I'm writing a very simple download manager which just can Download - Pause - Resume, how is it possible to resume the download from the exact point of the file that stop before, well actually the only thing I'm looking for is how to set the file…
john smith
  • 21
  • 5
-2
votes
1 answer

How to download a file using winsock or wininet

I could not find any code samples using Google. Could someone please show me how to do it? I think we need to use winsock or wininet.
Chong Lip Phang
  • 127
  • 2
  • 6
-3
votes
2 answers

Cant allocate memory using MALLOC

Can anyone help me as what is going wrong here? Am not able to allocate memory using malloc... bReadFile = ReadFile( hConsoleFile, &ReadFileBuffer, MaxCharToRead, &CharsRead, NULL );
Abhineet
  • 5,031
  • 22
  • 41
-3
votes
1 answer

How to get source code of entire content of a webpage programmatically?

I would like to get source code of entire page including contents that is generated dynamically. I've tried wininet and curl but i just get the contents that rendered in code behind. Example: As you can see below, the list of people doesn't show up…
Kitiara
  • 143
  • 2
  • 14
1 2 3
37
38