Wox
2007-05-11 09:48:04 UTC
Hi All,
I have problems retrieving information from perl enabled sites. This
is what I do (Example: www.rfc-editor.org/cgi-bin/rfcsearch.pl just
for illustration):
HINTERNET hSession, hConnect, hRequest;
hSession = InternetOpen("Some Name",
INTERNET_OPEN_TYPE_PRECONFIG,
NULL,
NULL,
0);
hConnect = InternetConnect(hSession,
"www.rfc-editor.org",
iPort,
NULL,
NULL,
INTERNET_SERVICE_HTTP,
0,
1);
hRequest = HttpOpenRequest(hConnect,
"POST",
"/cgi-bin/rfcsearch.pl",
NULL,
NULL,
NULL,
INTERNET_FLAG_NO_CACHE_WRITE|INTERNET_FLAG_RELOAD|INTERNET_FLAG_KEEP_CONNECTION,
0);
; => Till here everything is fine.
bool bResult=HttpSendRequest(hRequest , NULL, 0, NULL, 0,);
; => This is always FALSE.
Any ideas why HttpOpenRequest fails?
Thanks,
Wox
I have problems retrieving information from perl enabled sites. This
is what I do (Example: www.rfc-editor.org/cgi-bin/rfcsearch.pl just
for illustration):
HINTERNET hSession, hConnect, hRequest;
hSession = InternetOpen("Some Name",
INTERNET_OPEN_TYPE_PRECONFIG,
NULL,
NULL,
0);
hConnect = InternetConnect(hSession,
"www.rfc-editor.org",
iPort,
NULL,
NULL,
INTERNET_SERVICE_HTTP,
0,
1);
hRequest = HttpOpenRequest(hConnect,
"POST",
"/cgi-bin/rfcsearch.pl",
NULL,
NULL,
NULL,
INTERNET_FLAG_NO_CACHE_WRITE|INTERNET_FLAG_RELOAD|INTERNET_FLAG_KEEP_CONNECTION,
0);
; => Till here everything is fine.
bool bResult=HttpSendRequest(hRequest , NULL, 0, NULL, 0,);
; => This is always FALSE.
Any ideas why HttpOpenRequest fails?
Thanks,
Wox