Developer Forum [ All Topics | New Topic ]

Thread: Round CSV Download Data Using Tickit


Not Working 

https://technet.rapaport.com/HTTP/Prices/CSV2_Round.aspx?ticket=


>> add a comment
Hiren
01/08/2014 08:02


5 Replies:

You have to call the authentication first, and add the authentication ticket to the URL. You can even do this manually. Go here to get the ticket: https://technet.rapaport.com/HTTP/Authenticate.aspx Add this to the URL above, and it should work. If you want to download in one request, you can add your username and password to the POST data to the URL: https://technet.rapaport.com/HTTP/Prices/CSV2_Round.aspx For example see this: https://technet.rapaport.com/Info/Prices/SampleCode/Get_File_With_Post_Request_Using_WebRequest.aspx

>> add a comment
Leo Muller
1/8/2014 8:09:00 AM
Not Working ..................


           Dim requestUriString As String = "https://technet.rapaport.com/HTTP/Authenticate.aspx"
            Dim request As WebRequest = WebRequest.Create(requestUriString)
         
            request.Method = "POST"
            request.ContentType = "application/x-www-form-urlencoded"
            Dim requestStream As Stream = request.GetRequestStream()
            SetControlPropertyValue(lblObjectName, "Text", "Authenticating . . .")
            Dim s As String = ("username=" & UserId & "&password=" & Password)
            Dim bytes As Byte() = Encoding.ASCII.GetBytes(s)
            requestStream.Write(bytes, 0, bytes.Length)
            requestStream.Close()
            SetControlPropertyValue(lblObjectName, "Text", "Downloading Rapaport . . .")
            Me.Refresh()
            Dim reader As New StreamReader(request.GetResponse.GetResponseStream())
            Dim str4 As String = reader.ReadToEnd
            ''---- for Round
            'Dim str1 As String
            'str1 = "http://technet.rapaport.com/HTTP/Prices/CSV2_Round.aspx?ticket=" & str4
            SetProgress(4)
            SetControlPropertyValue(lblObjectName, "Text", "Downloading Rapaport for Round . . .")
            Me.Refresh()
            request = WebRequest.Create(("http://technet.rapaport.com/HTTP/Prices/CSV2_Round.aspx?ticket=" & str4))
            request.Method = "GET"
            Dim reader2 As New StreamReader(request.GetResponse.GetResponseStream)


>> add a comment
Hiren
1/8/2014 8:42:00 AM
The code looks good to me.

First try to go manually to this page:
https://technet.rapaport.com/HTTP/Authenticate.aspx

That will solve the question if you pass authentication.

For the code above, do you get a response?



>> add a comment
Leo Muller
1/8/2014 8:48:00 AM

https://technet.rapaport.com/HTTP/Authenticate.aspx 

Download Ticket Succesfully But Pass Ticket this Link

http://technet.rapaport.com/HTTP/Prices/CSV2_Round.aspx?ticket=

Data Not Found.... 




>> add a comment
HIren
1/8/2014 8:53:00 AM
You need to re-activate your subscription (yours expired)

>> add a comment
Leo Muller
1/9/2014 2:09:00 AM