{"action":"created","issue":{"url":"https://api.github.com/repos/chao/RESTClient/issues/158","labels_url":"https://api.github.com/repos/chao/RESTClient/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/chao/RESTClient/issues/158/comments","events_url":"https://api.github.com/repos/chao/RESTClient/issues/158/events","html_url":"https://github.com/chao/RESTClient/issues/158","id":30761113,"number":158,"title":"In case of empty response, REST Client wait indefinitely","user":{"login":"rkosegi","id":3736012,"avatar_url":"https://avatars.githubusercontent.com/u/3736012?v=3","gravatar_id":"","url":"https://api.github.com/users/rkosegi","html_url":"https://github.com/rkosegi","followers_url":"https://api.github.com/users/rkosegi/followers","following_url":"https://api.github.com/users/rkosegi/following{/other_user}","gists_url":"https://api.github.com/users/rkosegi/gists{/gist_id}","starred_url":"https://api.github.com/users/rkosegi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkosegi/subscriptions","organizations_url":"https://api.github.com/users/rkosegi/orgs","repos_url":"https://api.github.com/users/rkosegi/repos","events_url":"https://api.github.com/users/rkosegi/events{/privacy}","received_events_url":"https://api.github.com/users/rkosegi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-04-03T09:50:29Z","updated_at":"2015-04-24T03:20:54Z","closed_at":null,"body":"When response body has zero length (Content-Length :0) and response code is HTTP 200, REST Client wait indefinitely with wait dialog saying \"Sending data...\".\r\n\r\nSame REST API works using curl:\r\n\r\ncurl -k -v -u xyz:123456 -k https://host:8443/api/blah/id=5\r\n\r\n> Authorization: Basic ABCDEFGHIJKL==\r\n> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.8 libidn/1.18 libssh2/1.4.2\r\n> Host: host:8443\r\n> Accept: */*\r\n> \r\n< HTTP/1.1 200 OK\r\n< Server: Apache-Coyote/1.1\r\n< Pragma: No-cache\r\n< Cache-Control: no-cache\r\n< Expires: Thu, 01 Jan 1970 00:00:00 UTC\r\n< Content-Type: application/json\r\n< Content-Length: 0\r\n\r\n\r\nI think problem is that REST Client require HTTP 204 status for zero length responses to correctly recognize empty body.\r\nAnyway, there is no mention about it in HTTP spec AFAIK (correct me if I'm wrong).\r\n\r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/chao/RESTClient/issues/comments/95787551","html_url":"https://github.com/chao/RESTClient/issues/158#issuecomment-95787551","issue_url":"https://api.github.com/repos/chao/RESTClient/issues/158","id":95787551,"user":{"login":"tenwit","id":1178882,"avatar_url":"https://avatars.githubusercontent.com/u/1178882?v=3","gravatar_id":"","url":"https://api.github.com/users/tenwit","html_url":"https://github.com/tenwit","followers_url":"https://api.github.com/users/tenwit/followers","following_url":"https://api.github.com/users/tenwit/following{/other_user}","gists_url":"https://api.github.com/users/tenwit/gists{/gist_id}","starred_url":"https://api.github.com/users/tenwit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenwit/subscriptions","organizations_url":"https://api.github.com/users/tenwit/orgs","repos_url":"https://api.github.com/users/tenwit/repos","events_url":"https://api.github.com/users/tenwit/events{/privacy}","received_events_url":"https://api.github.com/users/tenwit/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T03:20:54Z","updated_at":"2015-04-24T03:20:54Z","body":"The solutions to issues 93 and 124 work here. Remove the Content-Type header or set to some something other than application/json."}}