You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2014/04/22 14:32:18 UTC
[jira] [Resolved] (HTTPCLIENT-1499) Fluent-HC GET should support
bodyString()
[ 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