🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.win32
Article #2211

CInternet classes (FTP) and proxies

#2211
From: Daniel W. Mathiasen
Date: Fri, 09 Apr 1999 00:00
40 lines
2847 bytes
Hi all,

I have a problem with the MFC Internet classes, or they have a problem 
with me ;)

My problem concerns are the optional internet settings, more specifically 
the proxy settings when using FTP, the MSDN documentation for the MFC 
Internet classes and the Internet API, suggests there are two kinds of 
proxy servers supported, TIS and CERN-proxies, in different situations:

"The Win32 Internet functions only recognize CERN type proxies (HTTP 
only) and the TIS FTP gateway (FTP only). If Microsoft Internet Explorer 
is installed, the Win32 Internet functions also support SOCKS proxies. 
FTP and Gopher requests can be made through a CERN type proxy either by 
changing them to an HTTP request." -MSDN "InternetOpen"

Unfortunately the CInternetSession documentation doesn't give much 
information of the proxy options. The dwAccessTyppe of CInternetSession 
only allows for specifing CERN proxy with "INTERNET_OPEN_TYPE_PROXY 
Through CERN proxy.", otherwise you can specify INTERNET_OPEN_TYPE_DIRECT 
Direct to Internet", or "INTERNET_OPEN_TYPE_PRECONFIG Preconfigured (in 
the registry). This access type is set as the default."

When you can specify a CERN proxy (I believe that this is what Netscape 
and IE supports as FTP proxies)how do you specify a TIS Proxy? Futher 
more if I implicit specify a CERN proxy with INTERNET_OPEN_TYPE_PROXY I 
have to supply a "pstrProxyName" which is "The name of the preferred CERN 
proxy if dwAccessType is set as INTERNET_OPEN_TYPE_PROXY. The default is 
NULL.", and should I then assume that FTP is not possible? If that is so, 
how is it possible to connect with FTP through a proxy ? I am also unable 
to figure out what "The name of the preferred CERN proxy" is. Is it a new 
work adr. like the ip adr ? or a christian name or ? :)

How do I connect through a TIS Proxy? And if IE is installed how do I 
connect through a Socks Proxy ?

Regards,
    Daniel W. Mathiasen
	Technical Department
	AIR SUPPORT
Technical Details
Message-ID: <MPG.1177d09a7314843798968b@news.tele.dk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d22,be5efbb5725ec40a,start
X-Google-Attributes: gid109d22,public
X-Google-Thread: 104d65,be5efbb5725ec40a,start
X-Google-Attributes: gid104d65,public
X-Google-Thread: fa6f6,be5efbb5725ec40a,start
X-Google-Attributes: gidfa6f6,public
X-Google-Thread: 113dfb,be5efbb5725ec40a,start
X-Google-Attributes: gid113dfb,public
X-Google-Thread: f80d7,be5efbb5725ec40a,start
X-Google-Attributes: gidf80d7,public
From: mathiasen.news@nospam.iname.com (Daniel W. Mathiasen)
Subject: CInternet classes (FTP) and proxies
Date: 1999/04/09
Message-ID: <MPG.1177d09a7314843798968b@news.tele.dk>
X-Deja-AN: 464365034
Organization: AIR SUPPORT
Newsgroups: comp.os.ms-windows.programmer.win32,dk.edb.programmering,dk.edb.programmering.c,microsoft.public.proxy,microsoft.public.vc.mfc