[ 
https://issues.apache.org/jira/browse/HTTPCORE-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roland Weber updated HTTPCORE-137:
----------------------------------

          Component/s:     (was: HttpCore NIO)
                       HttpCore
        Fix Version/s: 4.0-beta1
             Assignee: Roland Weber
           Issue Type: Improvement  (was: Bug)
    Affects Version/s:     (was: 4.0-rc1)
                       4.0-alpha6

Thanks for tracking the problem down. The DefaultHttpRequestFactory was 
obviously designed only as an example for the three most common methods. I 
suggest to extend this to support all methods specificed in RFC 2616 (except 
CONNECT) by default.
We will also need documentation for using core on the server side eventually. 
So much to do, so little time...

cheers,
  Roland

> Problem handling HTTP PUT requests 
> -----------------------------------
>
>                 Key: HTTPCORE-137
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-137
>             Project: HttpComponents Core
>          Issue Type: Improvement
>          Components: HttpCore
>    Affects Versions: 4.0-alpha6
>         Environment: Java JDK 1.6.0_03 on Windows XP Service Pack 2
>            Reporter: Ronald E Johnson
>            Assignee: Roland Weber
>            Priority: Minor
>             Fix For: 4.0-beta1
>
>         Attachments: DefaultHttpRequestFactory.java, TestHTTPServer.java
>
>
> I have a Java Swing application with an HttpServer() instance running in a 
> SwingWorker thread.  I'm able to get at the HTTP GET requests by casting the 
> request as follows:
> if (request instanceof HttpEntityEnclosingRequest)  {
>             HttpEntity entity = ((HttpEntityEnclosingRequest) 
> request).getEntity();
>             byte[] entityContent = EntityUtils.toByteArray(entity);
>             logger.info("Incoming entity content (bytes): " + 
> entityContent.length);
> }
> However this does not work for PUT requests. In fact printing out the request 
> line of a PUT request appears as: "HEAD /test.txt HTTP/1.1", and I don't see 
> PUT in the request line at all.  Attempting to cast this as an 
> HttpEntityEnclosingRequest fails, and thus I'm not able to get at the 
> HttpEntity.  Is this functionality supported?  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to