Java document parsing over internet using POST
        Posted  
        
            by Travis
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Travis
        
        
        
        Published on 2010-05-14T06:11:16Z
        Indexed on 
            2010/05/14
            6:14 UTC
        
        
        Read the original article
        Hit count: 305
        
I've looked all around and decided to make my own library for accessing the EVE API.
Requests are sent to a server address such as /account/Characters.xml.aspx. Characters.xml.aspx requires two item be submitted in POST and then it returns an XML file. So far I have this but it does not work, probably becuase I am using GET instead of POST:
    //Get the API data
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    String url = "http://api.eveonline.com/account/Characters.xml.aspx?userID="+
            userID+"?apiKey="+key;
    Document doc = builder.parse(url);
How would I go about being able to parst an XML file that is generated by submitting variables in POST?
© Stack Overflow or respective owner