source: josm/trunk/src/org/openstreetmap/josm/io/MyHttpURLConnection.java@ 729

Last change on this file since 729 was 627, checked in by framm, 16 years ago
  • Property svn:eol-style set to native
File size: 757 bytes
Line 
1/* Stupid package to override the restriction on payloads with DELETEs */
2package org.openstreetmap.josm.io;
3
4import java.net.ProtocolException;
5import java.io.*;
6import java.net.URL;
7import java.net.Proxy;
8
9public class MyHttpURLConnection extends sun.net.www.protocol.http.HttpURLConnection {
10 protected MyHttpURLConnection(URL u, Proxy p, sun.net.www.protocol.http.Handler handler)
11 {
12 super(u,p,handler);
13 }
14
15public synchronized OutputStream getOutputStream()
16 throws IOException {
17 String oldmethod = method;
18 method = "POST";
19 OutputStream temp = super.getOutputStream();
20 method = oldmethod;
21 return temp;
22}
23}
Note: See TracBrowser for help on using the repository browser.