|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
PostMethod task + MyClient bugs???Hello.
1) I have noticed the bug in the documentation see apache\ant\docs\manual\tasks\http-client_type.html. The RFC2109 should be used instead of RFC_2109 (which cases an exception: java.lang.IllegalStateException: Unsupported cookie spec RFC_2109) 2) I believe that there are some bugs in "net/sf/antcontrib/net/httpclient/PostMethodTask.java". I belive that the first parameter in ================================== partArray[i] = new FilePart(filePart.getPath().getName(), filePart.getPath().getName(), filePart.getPath(), filePart.getContentType(), filePart.getCharSet()); ================================== Should be the name of file attribute (file-input control) not the filename. (see attached patched file) For example: Mozilla uses different names for file and for parameter: ----------------------------------------- Content-Disposition: form-data; name="pic_file[]"; filename="AbstractMethodTask.class" ----------------------------------------- 3) Have anybody succeeded in uploading file to the server. I can't still do it :(. But I can not also file a bug. Thanks a lot. Andrei. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ant-contrib-developers mailing list Ant-contrib-developers@... https://lists.sourceforge.net/lists/listinfo/ant-contrib-developers |
|
|
Fwd: PostMethod task + MyClient bugs???Hello.
1) I have noticed the bug in the documentation see apache\ant\docs\manual\tasks\http-client_type.html. The RFC2109 should be used instead of RFC_2109 (which cases an exception: java.lang.IllegalStateException: Unsupported cookie spec RFC_2109) 2) I believe that there are some bugs in "net/sf/antcontrib/net/httpclient/PostMethodTask.java". I belive that the first parameter in ================================== partArray[i] = new FilePart(filePart.getPath().getName(), filePart.getPath().getName(), filePart.getPath(), filePart.getContentType(), filePart.getCharSet()); ================================== Should be the name of file attribute (file-input control) not the filename. (see attached patched file) For example: Mozilla uses different names for file and for parameter: ----------------------------------------- Content-Disposition: form-data; name="pic_file[]"; filename="AbstractMethodTask.class" ----------------------------------------- 3) Have anybody succeeded in uploading file to the server. I can't still do it :(. But I can not also file a bug. Thanks a lot. Andrei. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ant-contrib-developers mailing list Ant-contrib-developers@... https://lists.sourceforge.net/lists/listinfo/ant-contrib-developers |
| Free embeddable forum powered by Nabble | Forum Help |