From 2b6d50f7fdfaca84c3ee82909800ad67d2e99bdc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 4 Jan 2024 11:24:49 +0300 Subject: NETLIBHTTPREQUEST::cbSize = old unused field removed --- protocols/Non-IM Contact/src/http.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'protocols/Non-IM Contact/src/http.cpp') diff --git a/protocols/Non-IM Contact/src/http.cpp b/protocols/Non-IM Contact/src/http.cpp index 466760d790..70804521b4 100644 --- a/protocols/Non-IM Contact/src/http.cpp +++ b/protocols/Non-IM Contact/src/http.cpp @@ -31,16 +31,15 @@ HNETLIBUSER hNetlibUser; // szUrl = URL of the webpage to be retrieved // return value = 0 for success, 1 or HTTP error code for failure // global var used: szData, szInfo = containing the retrieved data -// + int InternetDownloadFile(char *szUrl) { - NETLIBHTTPREQUEST nlhr = { 0 }; - // initialize the netlib request - nlhr.cbSize = sizeof(nlhr); + NETLIBHTTPREQUEST nlhr = {}; nlhr.requestType = REQUEST_GET; nlhr.flags = NLHRF_DUMPASTEXT; nlhr.szUrl = szUrl; + // change the header so the plugin is pretended to be IE 6 + WinXP nlhr.headersCount++; nlhr.headers = (NETLIBHTTPHEADER*)malloc(sizeof(NETLIBHTTPHEADER)*nlhr.headersCount); -- cgit v1.2.3