Help ME automate this problem

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
 
C

Cor Ligthert

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
 
H

Herfried K. Wagner [MVP]

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

Guest

That is exactly what i needed. thank you very much. I have it working as we
speak. Nice tool
 
H

Herfried K. Wagner [MVP]

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 :).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top