Article View: borland.public.cppbuilder.nativeapi
Article #2472Re: WinInet, InternetOpen and Proxy settings...
From: Remy Lebeau (TeamB)
Date: Wed, 21 Feb 2007 23:13
Date: Wed, 21 Feb 2007 23:13
23 lines
1572 bytes
1572 bytes
"Mike Collins" <its@TheBottomOfThePost.com> wrote in message
news:45dcb57a$1@newsgroups.borland.com...
> szProxySz = AnsiString("\"\"http=http://" + getProxyAddress()
+ ":" +
> getProxyPortNum() + "\"\"");
You have a lot of quotation marks in that string. Try removing them:
szProxySz = "http=http://" + getProxyAddress() + ":" +
getProxyPortNum();
> When no proxy setting are enabled, the code works without problem.
> When they are enabled, with valid values, the InternetOpen call
fails and
> GetLastError returns, "Parameter are Incorrect"
That is because you are specifying a malformed string value for the
proxy name.
Gambit
Technical Details
Message-ID:
<45dcd1f8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45dcb57a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8d28b2a3d9a6eaf6 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <45dcb57a$1@newsgroups.borland.com> Subject: Re: WinInet, InternetOpen and Proxy settings... Date: Wed, 21 Feb 2007 15:13:11 -0800 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.83.34.171 Message-ID: <45dcd1f8$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172099576 75.83.34.171 (21 Feb 2007 15:12:56 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail