473,407 Members | 2,315 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Help ME automate this problem

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-passw...asswd=7paishe6
After I'm logged in, I can then hit this
https://A_Website/cgi-bin/billrpt.pl...s=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

Nov 21 '05 #1
5 919
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
Nov 21 '05 #2
"Eric" <Er**@discussions.microsoft.com> schrieb:
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-passw...asswd=7paishe6
After I'm logged in, I can then hit this
https://A_Website/cgi-bin/billrpt.pl...s=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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3
That is exactly what i needed. thank you very much. I have it working as we
speak. Nice tool

"Herfried K. Wagner [MVP]" wrote:
"Eric" <Er**@discussions.microsoft.com> schrieb:
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-passw...asswd=7paishe6
After I'm logged in, I can then hit this
https://A_Website/cgi-bin/billrpt.pl...s=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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #4
"Eric" <Er**@discussions.microsoft.com> schrieb:
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 :-).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #5
Eric,

Thank you for telling us that the solution did work for you.

Cor
Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Neil | last post by:
Hi, I hope this question isn't too far off topic....I'm almost at my wits end trying to figure this out. I have a Mysql database and I wish to automate the backup of the database because I...
3
by: Brad Burke | last post by:
From a windows .Net app, I need to 1) check if MSAccess is already open to a certain Access application. If so, then open a form and find a certain record. 2) If not open, then open MSAccess and...
4
by: Chris via AccessMonster.com | last post by:
I have the challenge of needing to automate table creation. It doesn't end there the tables have to be created from one table that looks something like this... Email ...
4
by: Ivan | last post by:
Hi All, I have tried to automate excel in vb.net and i found a problem that i can't find the solution in anywhere... i hope someone can help me in this group.... the problem is i try using...
0
by: Kermitus | last post by:
Hey I was hoping for a little help. I am a Domain reseller for Aplus.net. The problem is they really don't provide an API to automate Domain searches, registering etc... I see much potential in...
0
by: hemanth | last post by:
Hi, I have a problem at hand. There is a link http://alpha2.iimb.ernet.in/pgsem2006/interviewcall.html. Which displays the result of an exam. I want to check the result of all the 2000...
10
by: Killer42 | last post by:
Hi all. If necessary I'll repost this in the Windows forum, but I thought this would be a good place to hit a fair cross-section of the community. Besides, anyone can see that all the best brains...
1
by: Ronald S. Cook | last post by:
We have a Win app that we publish via built-in ClickOnce. However, we have 10 different locations to which we deploy the app. Each time we have a new build to publish, we have to change the IP in...
1
by: Aluear | last post by:
WE are working in a Anti-virus tool which is developed in .Net. While we try to automate the Tool exe in "Selenium IDE", we caught with the following error message. "CLR: 8007000b The program...
6
by: cj2 | last post by:
I need to create a cover letter in VB. It will have a customers account number at the top and be addressed to them by name for example (Dear Mr. Smith). After this it will be the same text for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.