This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/9645] url.openConnection() will request by default a http GET, while the jdk requests a POST
- From: "erik dot poupaert at skynet dot be" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jul 2003 22:55:19 -0000
- Subject: [Bug libgcj/9645] url.openConnection() will request by default a http GET, while the jdk requests a POST
- References: <20030210194559.9645.erik.poupaert@chello.be>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9645
------- Additional Comments From erik dot poupaert at skynet dot be 2003-07-11 22:55 -------
Subject: Re: url.openConnection() will request by default
a http GET, while the jdk requests a POST
It occurs in lines 376-392 of XmlRpcClient.java of org.apache.xmlrpc. That is why I
have to use the alternative class XmlRpcClientLite.java which contains its own
HttpClient class:
---------------------------
URLConnection con = url.openConnection();
con.setDoInput(true);
con.setDoOutput(true);
con.setUseCaches(false);
con.setAllowUserInteraction(false);
con.setRequestProperty("Content-Length",
Integer.toString(request.length));
con.setRequestProperty("Content-Type", "text/xml");
if (auth != null)
{
con.setRequestProperty("Authorization", "Basic " + auth);
}
OutputStream out = con.getOutputStream();
out.write(request);
out.flush();
out.close();
InputStream in = con.getInputStream();
parse(in);
---------------------------
Ok. I'll try to turn this into a standalone example of the bug over the weekend; if
my wife doesn't kill me before that.
On 11 Jul 2003 21:19:12 -0000
"pinskia at physics dot uc dot edu" <gcc-bugzilla@gcc.gnu.org> wrote:
> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9645
>
>
>
> ------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-11
> 21:19 ------- It is okay for you but what about every one else?
>
>
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.