Re: Driving a website using VFP

From: Neil Waterworth (nospam-or-nwaterworth_at_lineone.net)
Date: 02/06/04


Date: Fri, 6 Feb 2004 23:47:38 -0000

Further again, you can usually insert the username and password into the
URL, if you're using basic authentication, e.g.

cSource = "http://user:pass@www.somewhere.com/myfile.xyz"

You might be able to bypass the form based authentication part using
URLDownloadToFile() with this. Maybe not, but still food for thought.

Neil

"Neil Waterworth" <nospam-or-nwaterworth@lineone.net> wrote in message
news:OYZ257N7DHA.3360@tk2msftngp13.phx.gbl...
> Further to the IE automation stuff above, the URLDownLoadToFile() API
> function might be useful. It's described at:
>
> http://www.news2news.com/vfp/?group=-1&function=268
>
> Regards,
> Neil
>
> "softmica" <anonymous@discussions.microsoft.com> wrote in message
> news:A185ED1E-F9DF-4CC9-B80C-00A552C1C265@microsoft.com...
> > What I am trying to do is log onto a website and then navigate to the
> appropriate page and then click a link which will initiate a file
> download.... although I want to be able to specify the download location
> without user intervention.
> >
> > In another section of the program, I want to log onto another website,
> select another page which will again require a log on, and then fill in
> certain fields automatically (again... no user intervention), submit the
> website and then copy the confirmation page that is generated to a memo
> field in a VFP application.
> >
> > There can be no user intervention required as these activities are
> time-sensitive and need to be controlled automatically by the VFP
> application.
> >
> > I've tried westwind stuff and it didn't work for what I need to do. I
am
> amazed that nobody is routinely doing this.
> >
> > Anyway, if you have some specific ideas, let me know. I've tried to use
> the InternetExplorer object but I cannot identify the logon page when it
> comes up.
> >
> > Hope you or someone else has some ideas.
> >
> > Jim
>
>



Relevant Pages

  • Re: Driving a website using VFP
    ... Further to the IE automation stuff above, ... without user intervention. ... > In another section of the program, I want to log onto another website, ... time-sensitive and need to be controlled automatically by the VFP ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Integrated windows authentication problems
    ... Post the relevant logon failure events here (if you open the event, ... Basic Authentication enabled at the same time when you want to test Basic. ... Recently I created a website that uses Integrated Windows Authentication ... NOTE: frontpage server extensions gave ...
    (microsoft.public.inetserver.iis.security)
  • Re: Do i need to got Https:// throught the website ???
    ... If they use Basic authentication then it is absolutely ... necessary to protect the password of the user. ... "Ananth Ramasamy Meenachi" ... An organization has a website which goes with windows ...
    (microsoft.public.dotnet.security)
  • Re: Basic Authentication
    ... Our original solution was to simply redirect to the website using this format: ... I have found a few places that indicate that I can add headers to the ... I know that basic authentication is really insecure. ...
    (microsoft.public.dotnet.languages.csharp)
  • Im getting a "(401) Unauthorized" error
    ... I'm trying to use the Webclient class to "POST" to a web site. ... is using basic authentication. ... I know the user/pass is correct because I can log on manually to the website. ...
    (microsoft.public.dotnet.general)