I am attempting to write an Android app which will allow me to read text from a website that holds my work roster https://www.blahblahblahcompany.com/Rostering/exportRoster.aspx
Is this possible? Would I be able to authenticate myself with the website and then download the source code?
The website in question also has the ability to export the roster as an .xls file
screenshot of the page in question
http://img528.imageshack.us/img528/9954/rosterf.png
I don’t know if I’ve get what you really want to do, but I’m sure that at least, you gonna need some Get/Post operations to execute authentication proccess and retrieve data/informations. Please check the following methods:
The above mehod executes a post in the url string parameter, using the pair values nvps as arguments for header. Note that Constants class is the class where you are declaring static strings (such as API entries) for your WebService, and the field cookies is a list of Cookies that gonna hold your session issues. This method will return the result for your POST request as a string builder object. Basically, it is a general-purpose method that can be used in several cases, and you should do little adaptations to fit tasks. This is what you can use to authenticate.
There is another important method, the Http GET:
This one do similar sequence of steps, but with very different purposes. The goal of this one is to retrieve informations, considering that you already have authenticated or that the auth process is not needed. It returns the requested data as a string builder.
Please, note that besides these methods are very general, you must closely check what is the proccess used in your requested web page. Hope that it helps you in some way! 😉