🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: CInternet classes (FTP) and proxies

#2206
From: Daniel W. Mathiasen
Date: Tue, 27 Apr 1999 00:00
66 lines
3697 bytes
In article <7f4sch$h78$1@nnrp1.dejanews.com>, diroussel@my-dejanews.com state..
> Daniel,  I also am confused by the WinInet handling of proxies.  I'm using
> MFC to connect to an ftp site on the other side of a SOCKS proxy. But with on
> success.
> 
> I've been using INTERNET_OPEN_TYPE_PRECONFIG in my CInternetSession
> constructor.  I've tried setting the proxy configuration in both IE4 and
> manually in the registry, in several ways.
> 
> The weird thing is that IE4 can access the ftp site, but my code can't!

Yes I know, I have had experiences where users have been sitting behind a proxy 
and not being able to use my code, but the ftp program worked.

> 
> Daniel, what kind of proxy are you using?  What different things have you
> tried?
> 
> Have you made any progress?

Not much... it seems to me the documentation is _very_ sparse and misleading, or 
the code is not consistent... or both...


> 
> In article <MPG.1177d09a7314843798968b@news.tele.dk>,
>   mathiasen.news@nospam.iname.com (Daniel W. Mathiasen) wrote:
> > 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" 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.118f78ffc329bdac98968d@news.tele.dk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <MPG.1177d09a7314843798968b@news.tele.dk> <7f4sch$h78$1@nnrp1.dejanews.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d22,be5efbb5725ec40a
X-Google-Attributes: gid109d22,public
X-Google-Thread: fa6f6,be5efbb5725ec40a
X-Google-Attributes: gidfa6f6,public
X-Google-Thread: 113dfb,be5efbb5725ec40a
X-Google-Attributes: gid113dfb,public
X-Google-Thread: f80d7,be5efbb5725ec40a
X-Google-Attributes: gidf80d7,public
From: mathiasen.news@iname.com (Daniel W. Mathiasen)
Subject: Re: CInternet classes (FTP) and proxies
Date: 1999/04/27
Message-ID: <MPG.118f78ffc329bdac98968d@news.tele.dk>
X-Deja-AN: 471373637
References: <MPG.1177d09a7314843798968b@news.tele.dk> <7f4sch$h78$1@nnrp1.dejanews.com>
Organization: AIR SUPPORT
Newsgroups: comp.os.ms-windows.programmer.win32,dk.edb.programmering,dk.edb.programmering.c,microsoft.public.proxy