🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: CInternet classes (FTP) and proxies

#2207
From: diroussel
Date: Thu, 15 Apr 1999 00:00
67 lines
3956 bytes
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!

Daniel, what kind of proxy are you using?  What different things have you
tried?

Have you made any progress?

I would appreciate any information you could give me.

Thanks,

David Roussel.

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 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
>

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    
Technical Details
Message-ID: <7f4sch$h78$1@nnrp1.dejanews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <MPG.1177d09a7314843798968b@news.tele.dk>

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: 113dfb,be5efbb5725ec40a
X-Google-Attributes: gid113dfb,public
X-Google-Thread: f80d7,be5efbb5725ec40a
X-Google-Attributes: gidf80d7,public
X-Google-Thread: fa6f6,be5efbb5725ec40a
X-Google-Attributes: gidfa6f6,public
From: diroussel@my-dejanews.com
Subject: Re: CInternet classes (FTP) and proxies
Date: 1999/04/15
Message-ID: <7f4sch$h78$1@nnrp1.dejanews.com>
X-Deja-AN: 466709640
References: <MPG.1177d09a7314843798968b@news.tele.dk>
To: mathiasen.news@iname.com
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)
X-Http-Proxy: 1.1 x10.dejanews.com:80 (Squid/1.1.22) for client 194.152.80.57
Organization: BJSS Ltd.
X-Article-Creation-Date: Thu Apr 15 14:16:56 1999 GMT
Reply-To: dir@nospam.bjss.co.uk
Newsgroups: comp.os.ms-windows.programmer.win32,dk.edb.programmering,dk.edb.programmering.c,microsoft.public.proxy