The XML-RPC server I am trying to communicate with requires that each request contains the following in the first line of the HTTP header:
POST /Air HTTP/1.1 however the following code we used,
urlc = (HttpURLConnection)url.openConnection(); urlc.setConnectTimeout(180000); urlc.addRequestProperty("User-Agent", "AVAYA/3.1/1.0"); urlc.addRequestProperty("Authorization","Basic QXZheWE6QXZheWE="); urlc.addRequestProperty("Content-type", "text/xml"); urlc.setDoOutput(true); urlc.setRequestMethod("POST"); which results in....
POST HTTP/1.1 User-Agent: Avaya/3.1/1.0 Authorization: Basic QXZheWE6QXZheWE= Content-type: text/xml i.e. without the "/Air" bit.
Please help us in modifying the POST header
HttpURLConnectioncan not be used for a simple HTTPPOSToperation. All that's required is, you know, an actual URL to post to ...