Help ME automate this problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Greetings
I have a problem in which i need to acces an https website, login and
then download a txt file, all within a a VB app. I can send in the logon
credentials via the URL and authenticate. example:
http://A_WebSite/cgi-bin/check-passwd.pl?loginid=kr0099&passwd=7paishe6
After I'm logged in, I can then hit this
https://A_Website/cgi-bin/billrpt.p...01/2005&enddt=01/31/2005&details=D&report=txt
This page is a TXT file that I wish to download. Notice this is SSL. After
the file is downloaded, I will parse and do some work. All within VB. I would
be so grateful if someone can help. thanks
 
Eric,

As far as I remember me, did I not see this question ever really answered in
this newsgroup.
(You are not the first)

Can you try it maybe as well in the newsgroup

microsoft.public.dotnet.security

Maybe using that route you have a better change.

Cor
 
Eric said:
I have a problem in which i need to acces an https website, login and
then download a txt file, all within a a VB app. I can send in the logon
credentials via the URL and authenticate. example:
http://A_WebSite/cgi-bin/check-passwd.pl?loginid=kr0099&passwd=7paishe6
After I'm logged in, I can then hit this
https://A_Website/cgi-bin/billrpt.p...01/2005&enddt=01/31/2005&details=D&report=txt
This page is a TXT file that I wish to download. Notice this is SSL. After
the file is downloaded, I will parse and do some work. All within VB. I
would
be so grateful if someone can help. thanks

Take a look at the 'HttpWebReqest' class. This class can be used to
download files via HTTP and HTTPs. Notice that you can pass credentials in
the web request (property 'Credentials'). Maybe the server supports that
instead of passing login data in the URL directly, which is IMO a bad idea.
 
That is exactly what i needed. thank you very much. I have it working as we
speak. Nice tool
 
Eric said:
That is exactly what i needed. thank you very much. I have it working as
we
speak. Nice tool

I am glad to hear that you were able to solve the problem :-).
 
Back
Top