You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Rocco Zanni (JIRA)" <ji...@apache.org> on 2013/08/01 09:31:49 UTC

[jira] [Created] (HTTPASYNC-50) CachingHttpAsyncClient generates incorrect HTTP request line

Rocco Zanni created HTTPASYNC-50:
------------------------------------

             Summary: CachingHttpAsyncClient generates incorrect HTTP request line
                 Key: HTTPASYNC-50
                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-50
             Project: HttpComponents HttpAsyncClient
          Issue Type: Bug
    Affects Versions: 4.0-beta4
            Reporter: Rocco Zanni


When calling this version of execute()

public Future<HttpResponse> execute(final HttpUriRequest request, final FutureCallback<HttpResponse> callback)

this way:

execute(new HttpGet("http://localhost:20000/request"), new FutureCallback<HttpResponse>() {
            @Override
            public void completed(HttpResponse result) {}
            @Override
            public void failed(Exception ex) {}
            @Override
            public void cancelled() {}
        });

the first line of the HTTP request sent on the wire is like this one:

GET http://localhost:20000/request HTTP/1.1

instead of the correct one:

GET /request HTTP/1.1

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org