🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4364

Re: Problems with HttpSendRequestEx

#4364
From: Bob Gonder
Date: Tue, 21 Feb 2006 16:33
19 lines
1676 bytes
Remy Lebeau (TeamB) wrote:

>"Bogdan"  wrote in message
>
>> If  i use HttpSendRequest it works fine,
>
>>       Request = HttpOpenRequest(Connection, "GET", script, NULL,
>
>>      result = HttpSendRequestEx(Request,NULL,NULL,HSR_DOWNLOAD,0);

>>     InternetQueryDataAvailable(Request,&Read,0,0);

In addition, this bit from MSDN might be a problem....

"For HINTERNET handles created by HttpOpenRequest and sent by
HttpSendRequestEx, a call to HttpEndRequest must be made on the handle
before InternetQueryDataAvailable can be used."

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/internetquerydataavailable.asp?frame=true
Technical Details
Message-ID: <irfmv1dam8rbnq9vvl4hgdbd3kk8gr7e34@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news4.google.com!news.glorb.com!newsfeeder.wxs.nl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43fa0b42@newsgroups.borland.com> <43fad647$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,aefec83386b1746e
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Problems with HttpSendRequestEx
Date: Tue, 21 Feb 2006 08:33:22 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <irfmv1dam8rbnq9vvl4hgdbd3kk8gr7e34@4ax.com>
References: <43fa0b42@newsgroups.borland.com> <43fad647$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.91.14
X-Trace: newsgroups.borland.com 1140539600 69.69.91.14 (21 Feb 2006 08:33:20 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news4.google.com!news.glorb.com!newsfeeder.wxs.nl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail