Re: Need help with InternetOpenUrl



"Daniel Kaplan" <NoSPam@xxxxxxxxxx> wrote in message
news:1180922704.149869@xxxxxxxxxxxxxxxx
So my app uses InternetOpenUrl function a lot, and it all works well.

But for a specific part, now I have to manually go to a non-standard
webpage (port 88) on my server that is on a different port, and IE
uses a username and password. From there I save the contents of my
browser and my app runs on that.

I would love to be able to have my app open that page with username
and password, but that might be beyond me.

Instead of InternetOpenUrl, use InternetConnect / HttpOpenRequest /
HttpSendRequest. InternetConnect takes port, username and password as
parameters, among other things.

As well, am sure me
sending the username and password via my code probably is unsafe.

How do you think IE sends them more securely - magic?

So one of my other thoughts was, since WinInet.DLL uses IE

It's the other way round - IE ultimately uses WinInet.

maybe I
can be logged on to that page with IE, and then run my app and have
it grab that secure webpage.

It might work if you use a WebBrowser control hosted by your
application, rather than a standalone IE instance. Most login schemes
rely on session cookies. WinInet maintains such cookies on a per-process
basis, so you must log in within the same process.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: SharePoint Issues on SBS
    ... You didn't have to add a separate IP so you can use port 80. ... As far as getting prompted or username and password, go to the 'Properties' page of the site, 'Directory Security' tab and click 'Edit' under 'Authentication and access control'. ... The request for user id and password from the application that opens a document, is something that you can't avoid the first time a document opens up. ... address to the NIC and configured the new sharepoint site to that IP. ...
    (microsoft.public.windows.server.sbs)
  • paramiko.SSHException : No existing session ???
    ... sock.connect_ex((hostname, port)) ... print "SSH negotiation sucessful" ... I am sure that the username and password exists properly. ...
    (comp.lang.python)
  • paramiko.SSHException : No existing session ???
    ... sock.connect_ex((hostname, port)) ... print "SSH negotiation sucessful" ... I am sure that the username and password exists properly. ...
    (comp.lang.python)
  • Re: Controlling port blocking with web interface
    ... >I get many malicious login attempts to my ssh server every day. ... >show up in my logs and annoy me. ... piped into mimencode to get username _AND_ password). ... Don't run your SSHD on the "standard" port, ...
    (comp.os.linux.networking)
  • connecting using SSL with C#
    ... I used IPEndPoint and Socket class of System.Net namespace in order to send ... a request to a webpage. ... I opened 443 port in order to establish a HTTPS ...
    (microsoft.public.dotnet.languages.csharp)