hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HTTPCLIENT-1499) Fluent-HC GET should support bodyString()
Date Tue, 22 Apr 2014 12:32:18 GMT

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

Oleg Kalnichevski resolved HTTPCLIENT-1499.
-------------------------------------------

    Resolution: Invalid

RFC 2616 defines _clearly_ and _unambiguously _ only two entity enclosing methods: POST and
PUT. 

GET requests with content body are silly and violate principles of request idempotence defined
by the protocol.

Oleg

> Fluent-HC GET should support bodyString()
> -----------------------------------------
>
>                 Key: HTTPCLIENT-1499
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1499
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: Fluent HC
>    Affects Versions: 4.3.2
>            Reporter: Axel Fontaine
>
> Request.Get(url).bodyString(json, ContentType.APPLICATION_JSON).execute() currently fails
with "GET request cannot enclose an entity"
> This is simply incorrect and works flawlessly with the regular HttpClient.
> This should be trivial to enable in the fluent one as well.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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


Mime
View raw message