CInternetSession with INTERNET_OPEN_TYPE_PROXY
Peter Sylvester -- peters@eur.autodesk.com
Tuesday, March 04, 1997
Environment: VC++ 4.2b, NT 4.0
I have MSDN
Please can somebody tell my where can I find some information about
how write an simple Internet browser which has to access the Internet
through a proxy which requires **authentication**.
My problem is that after creating a CInternetSession with:
m_MyInternetSession = new CInternetSession ( "MyBrowser", 1,
INTERNET_OPEN_TYPE_PROXY,
"http=http://adeskeur:8080",
NULL, INTERNET_FLAG_ASYNC );
All calls to m_MyInternetSession->OpenURL ( "...." );
throws an exception with the following ReportedError: "Server name or
address could not be resolved"
(I need just to read some http files not to modify them.)
Till this time I couldn't find any other useful help.
Regards
Peter Sylvester
Mike Blaszczak -- mikeblas@nwlink.com
Saturday, March 08, 1997
At 17:21 3/4/97 MET, Peter Sylvester wrote:
> Environment: VC++ 4.2b, NT 4.0
> I have MSDN
> My problem is that after creating a CInternetSession with:
> m_MyInternetSession = new CInternetSession ( "MyBrowser", 1,
> INTERNET_OPEN_TYPE_PROXY,
> "http=http://adeskeur:8080",
> NULL, INTERNET_FLAG_ASYNC );
MFC doesn't support INTERNET_FLAG_ASYNC.
.B ekiM
http://www.nwlink.com/~mikeblas/
These words are my own. I do not speak on behalf of Microsoft.
This performance was not lip-synched.
ktm@ormec.com
Tuesday, March 11, 1997
On mfc-l, .B ekiM (mikeblas@nwlink.com) wrote:
> At 17:21 3/4/97 MET, Peter Sylvester wrote:
> > Environment: VC++ 4.2b, NT 4.0
> > I have MSDN
> > My problem is that after creating a CInternetSession with:
> > m_MyInternetSession = new CInternetSession ( "MyBrowser", 1,
> > INTERNET_OPEN_TYPE_PROXY,
> > "http=http://adeskeur:8080",
> > NULL, INTERNET_FLAG_ASYNC );
>
> MFC doesn't support INTERNET_FLAG_ASYNC.
The documentation seems to imply otherwise. In fact, the documentation
for CInternetSession::CInternetSession has specific instructions for
using INTERNET_FLAG_ASYNC. (By calling EnableStatusCallback, etc.)
Katy (ktm@ormec.com)
Greg Macdonald -- gmac@symantec.com
Monday, March 17, 1997
[Mini-digest: 2 responses]
>>Unfortunatley, the documentation is wrong.
Bummer. Is there a technical reason or has it just not popped off your stack
yet? So, if one had a simple ftp browser-like thing in need of asynchronous
operation, do you have any suggestions or cautions? My first thought is to
create the CInternetSession in the application thread and then the
CFtpconnection object in a separate thread. OTOH, it might be useful to handle
multiple simultaneous file xfers in multiple threads. If I'm being
simple-minded, please feel free to yell.
Greg
______________________________ Reply Separator _________________________________
Subject: RE: CInternetSession with INTERNET_OPEN_TYPE_PROXY
Author: Mike Blaszczak at INTERNET
Date: 3/13/97 8:17 PM
[Mini-digest: 2 responses]
At 09:32 3/11/97 -0500, ktm@ormec.com wrote:
>On mfc-l, .B ekiM (mikeblas@nwlink.com) wrote:
>> MFC doesn't support INTERNET_FLAG_ASYNC.
>The documentation seems to imply otherwise. In fact, the documentation
>for CInternetSession::CInternetSession has specific instructions for
>using INTERNET_FLAG_ASYNC. (By calling EnableStatusCallback, etc.)
Unfortunatley, the documentation is wrong. I'm pretty sure the README
for VC++ 4.2 and/or 4.2b and/or 5.0 points out the truth pretty clearly.
.B ekiM
http://www.nwlink.com/~mikeblas/
These words are my own. I do not speak on behalf of Microsoft.
This performance was not lip-synched.
-----From: Dave Kolb
I think Mike's point was that it's not MFC that supports this option but
rather the API.
Dave Kolb
SAS Institute
>-----Original Message-----
>From: ktm@ormec.com [SMTP:ktm@ormec.com]
>Sent: Tuesday, March 11, 1997 9:32 AM
>To: mfc-l@netcom.com
>Subject: RE: CInternetSession with INTERNET_OPEN_TYPE_PROXY
>
>On mfc-l, .B ekiM (mikeblas@nwlink.com) wrote:
>> At 17:21 3/4/97 MET, Peter Sylvester wrote:
>> > Environment: VC++ 4.2b, NT 4.0
>> > I have MSDN
>> > My problem is that after creating a CInternetSession with:
>> > m_MyInternetSession = new CInternetSession ( "MyBrowser", 1,
>> > INTERNET_OPEN_TYPE_PROXY,
>> > "http=http://adeskeur:8080",
>> > NULL, INTERNET_FLAG_ASYNC );
>>
>> MFC doesn't support INTERNET_FLAG_ASYNC.
>
>The documentation seems to imply otherwise. In fact, the documentation
>for CInternetSession::CInternetSession has specific instructions for
>using INTERNET_FLAG_ASYNC. (By calling EnableStatusCallback, etc.)
>
> Katy (ktm@ormec.com)
--IMA.Boundary.222716858
Content-Type: text/plain; charset=US-ASCII; name="RFC822 message headers"
Become an MFC-L member
| Вернуться в корень Архива
|