Link to home
Start Free TrialLog in
Avatar of kinton
kinton

asked on

HTTPS GET Query String

Hi,

I need to dowload some data from a third party.  The data is in TSV format and can be obtained using an "https get query string".

I want to write a VB.net app that will download this data on a scheduled basis.  Does anyone have any sample code for this?

thanks
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can retrieve content of the page over HTTPS protocol in the same way as you would over the HTTP protocol. Check this link:

http://www.developerfusion.co.uk/show/4637/
Avatar of kinton
kinton

ASKER

ok - Both solutions appear like they should work.

If I type my URL into my browser the download works fine, if I use any of the baove methods I get a 401 error Unauthorized.

any ideas?
If you need to pass in credentials:

    Dim client As New WebClient()
    client.Credentials = New NetworkCredentials(userName, password)
    client.DownloadFile(address, fileName)

Bob
Avatar of kinton

ASKER

I don't think I do.  I do not host the page I am trying to call.  It is on a remote server.  Forgive me if I am missing the point but how will passing network credentials help?
When you access the URL with the browser, is there anything that you do to gain access?   Does the site require cookies?

Bob
Avatar of kinton

ASKER

I think so, give me a moment.  I think your suggestion may have worked..