I wanted to send XML file as attachment over URL from Java class
Code with which i am trying is as below
File request_XML_file = new File("src/request.xml");
URL url = new URL("https://************?p_xml_file="+request_XML_file);
conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setRequestProperty("enctype","multipart/form-data");
But value passed for p_xml_file is src/request.xml