Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

afxinet.h - Tear MFC Example with VC++

Status
Not open for further replies.

TheMillionDollarMan

Programmer
Jun 10, 2002
132
US

Hi.

I am using Win 2k with Vc++.

I tried to use the Tear example that comes with the help but at work we have to login to use the internet.

How can I do this with the tear example?
I thought it could be AddRequestHeaders from the CHttpFile class but no.


This is the error message I get:
FW-1 at sun220re3:
Unauthorized to access the document.
Authorization is needed for FW-1.
The authentication required by FW-1 for the user

Any assitance would be appreciated.
TMDM
 
>> at work we have to login to use the internet.

Login to what? Do you mean your behind a firewall?

>> I thought it could be AddRequestHeaders from the
>> CHttpFile class but no.

What headers did you add?

That sample is just making a simple HTTP request. Can you telnet to that same resource?

-pete
 

Sorry...

* Yes I need to get past the firewall at work.
* No I can't telnet to the resource.

Any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top