Advertisement

01.02.2008 at 07:43AM PST, ID: 23053266
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

download xls file over https vb.net

Asked by ecircle99 in Secure Socket Layer (SSL) & HTTPS, Microsoft Visual Basic.Net, Visual Studio

I'm trying to download an xls file from an https website, even though I am passing the username and password to the site, when I download the file I am gettting the "You have reached a secure web page, please login" page instead of the xls file.  What do I need to do to properly login to the site and get past the SSL security?  Here is my code:

        Dim dt1 As Date = DateAndTime.Now
        Dim Req As HttpWebRequest
        Dim SourceStream As System.IO.Stream
        Dim Response As HttpWebResponse
       Dim URL As String = "https://www.xxxxxxxx.com/Conduit/UI/SSL/RatesPricing/xxxxxxx.aspx? FileType=xls"
        Req = HttpWebRequest.Create(URL)
        Req.Credentials = New NetworkCredential("username", "password")
       Response = Req.GetResponse()

       SourceStream = Response.GetResponseStream()
        Dim inBuf(100000) As Byte
        Dim bytesToRead As Integer = CInt(inBuf.Length)
        Dim bytesRead As Integer = 0
        While bytesToRead > 0
            Dim n As Integer = SourceStream.Read(inBuf, bytesRead, bytesToRead)
            If n = 0 Then
                Exit While
            End If
            bytesRead += n
            bytesToRead -= n
        End While

        Dim fstr As New FileStream("C:\Rates\xxx.xls", FileMode.OpenOrCreate, FileAccess.Write)
        fstr.Write(inBuf, 0, bytesRead)
        'str.Close()
        SourceStream.Close()
        fstr.Close()Start Free Trial
 
Loading Advertisement...
 
[+][-]01.02.2008 at 07:55AM PST, ID: 20565175

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Secure Socket Layer (SSL) & HTTPS, Microsoft Visual Basic.Net, Visual Studio
Sign Up Now!
Solution Provided By: Dxpert
Participating Experts: 1
Solution Grade: A
 
 
[+][-]01.02.2008 at 08:09AM PST, ID: 20565305

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.20.2008 at 06:31AM PDT, ID: 22269189

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 02:24PM PDT, ID: 22319715

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628