Question Locked
How to delete files from server using j2me
0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Here is the code to delete files from server. I am getting java.io.IOException: unsupported method: DELETE. Is there any alternative to delete files from server, please help me ASAP.
conn = (HttpConnection) Connector.open(url);
conn.setRequestMethod("DELETE");
conn.setRequestProperty
("Authorization", "Basic " + mClub.enc_str);
int responseCode = conn.getResponseCode();