You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by "Pill, Juergen" <Ju...@softwareag.com> on 2001/08/17 08:47:49 UTC
RE: cvs commit: jakarta-slide/src/webdav/client/src/org/apache/c
ommons/httpclient/methods PutMethod.java
Hi Dirk,
For some strange reasons the sendData(String) did not work! Due to my
debugging the everything seams to work fine, the data is send, but the
server hangs waiting for additional tcp/ip input from the client. We are
using Tomcat 3.3 b4.
I used setQuery as a work-around, I can look into this some time later
again.
Juergen
-----Original Message-----
From: Dirk Verbeeck [mailto:dirk.verbeeck@pandora.be]
Sent: Thursday, August 16, 2001 21.35 PM
To: slide-dev@jakarta.apache.org
Subject: Re: cvs commit:
jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/methods
PutMethod.java
Can't you just use sendData(String), it works for me
and using setQuery doesn't seem right, it's more an internal method.
Dirk
juergen@apache.org wrote:
> juergen 01/08/16 10:22:27
>
> Modified: src/webdav/client/src/org/apache/commons/httpclient/methods
> PutMethod.java
> Log:
> the setQuery method can be used to transfer small String data too.
Anyway the client/server will hang if I used sendData(String)???
>
> Revision Changes Path
> 1.3 +6 -6
jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/methods/Pu
tMethod.java
>
> Index: PutMethod.java
> ===================================================================
> RCS file:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/
methods/PutMethod.java,v
> retrieving revision 1.2
> retrieving revision 1.3
> diff -u -r1.2 -r1.3
> --- PutMethod.java 2001/08/13 17:09:53 1.2
> +++ PutMethod.java 2001/08/16 17:22:27 1.3
> @@ -1,7 +1,7 @@
> /*
> - * $Header:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/
methods/PutMethod.java,v 1.2 2001/08/13 17:09:53 dirkv Exp $
> - * $Revision: 1.2 $
> - * $Date: 2001/08/13 17:09:53 $
> + * $Header:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/
methods/PutMethod.java,v 1.3 2001/08/16 17:22:27 juergen Exp $
> + * $Revision: 1.3 $
> + * $Date: 2001/08/16 17:22:27 $
> *
> * ====================================================================
> *
> @@ -200,7 +200,7 @@
> * @return boolean true
> */
> public boolean isStreamedQuery() {
> - return true;
> + return data != null || url != null || file != null;
> }
>
>
> @@ -223,7 +223,7 @@
> * @return String query
> */
> public String generateQuery() {
> - return "";
> + return query;
> }
>
>
> @@ -272,7 +272,7 @@
>
> /**
> * Return true if the method should ask for an expectation.
> - *
> + *
> * @return true if an expectation will be sent
> */
> public boolean needExpectation() {
>
>
>