PavelGur
Programmer
- Sep 21, 2001
- 75
I have the same program on two computers that gets data from Internet. It is using the following code to do it:
<code>
if (hSession)
{
hURL = ::InternetOpenUrl(
hSession,
szURL,
NULL,
NULL,
INTERNET_FLAG_DONT_CACHE,
NULL
);
if (hURL)
bFile = ::InternetReadFile(
hURL,
&szHTML,
0xFFFF,
&dwBytesRead
);
}
</code>
I'm getting 20524 bytes on one computer and 1392 bytes on another reading the same URL. It's got to be a setting problem. But I can not figure out where it is.
Thank you, Pavel.
<code>
if (hSession)
{
hURL = ::InternetOpenUrl(
hSession,
szURL,
NULL,
NULL,
INTERNET_FLAG_DONT_CACHE,
NULL
);
if (hURL)
bFile = ::InternetReadFile(
hURL,
&szHTML,
0xFFFF,
&dwBytesRead
);
}
</code>
I'm getting 20524 bytes on one computer and 1392 bytes on another reading the same URL. It's got to be a setting problem. But I can not figure out where it is.
Thank you, Pavel.