API POST values
Posted: Thu Oct 13, 2005 7:47 pm
Hi Guys,
I am working with another development team on a cross domain API project. I need to check if a login passes or fails. The API they gave me takes the username and password as post variables, and returns XML output with the data I need, or an error if the login fails.
What I need to do is post the login, and check the results it returns to see if the login passes or fails.
How can I post variables to this page, and be able to parse the returned value? My thoughts are XMLhttpRequest, similar to how you would do an AJAX request.
What's the best solution here?
Josh
I am working with another development team on a cross domain API project. I need to check if a login passes or fails. The API they gave me takes the username and password as post variables, and returns XML output with the data I need, or an error if the login fails.
What I need to do is post the login, and check the results it returns to see if the login passes or fails.
How can I post variables to this page, and be able to parse the returned value? My thoughts are XMLhttpRequest, similar to how you would do an AJAX request.
What's the best solution here?
Josh