I need a java function that accepts a web URL (as string), and returns one of the following codes (also a string) (after receiving/parseing the reponse from the server):
00 - Received an XML page
01 - No Response (timed out or server down)
02 - Invalid URL (a file not found)
03 - Received a NON-XML Page
One can determine whether or not it's an xml page by looking at the first few characters "<?xml_version". Java is not my cup of tea (coffee?). Is this difficult?
Is anyone up for it?
Curtis
00 - Received an XML page
01 - No Response (timed out or server down)
02 - Invalid URL (a file not found)
03 - Received a NON-XML Page
One can determine whether or not it's an xml page by looking at the first few characters "<?xml_version". Java is not my cup of tea (coffee?). Is this difficult?
Is anyone up for it?
Curtis