Quantcast
Channel: Send Xml string through POST method in java - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Eugene Lebedev for Send Xml string through POST method in java

if you want to send XML as text/xml with HTTP POST you should use OutputStreamWriter:try(OutputStreamWriter osw = new OutputStreamWriter(cnn.getOutputStream)) { osw.write(xmlData); osw.flush();}

View Article



Answer by Manish Mudgal for Send Xml string through POST method in java

Send it as parameter: Using Apache HttpClient String url = "https://yoururl.com"; HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(url); // add header...

View Article

Send Xml string through POST method in java

I want to pass an xml string through POST method to an URL. I tried below snippet but it doesn't return anythingdisableCertificateValidation();String url = "https://..url"; //httpsProperties sysProps =...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images