{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1042","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1042/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1042/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1042/events","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/1042","id":156148925,"number":1042,"title":"411 Content Length required issue","user":{"login":"beku8","id":1091489,"avatar_url":"https://avatars.githubusercontent.com/u/1091489?v=3","gravatar_id":"","url":"https://api.github.com/users/beku8","html_url":"https://github.com/beku8","followers_url":"https://api.github.com/users/beku8/followers","following_url":"https://api.github.com/users/beku8/following{/other_user}","gists_url":"https://api.github.com/users/beku8/gists{/gist_id}","starred_url":"https://api.github.com/users/beku8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beku8/subscriptions","organizations_url":"https://api.github.com/users/beku8/orgs","repos_url":"https://api.github.com/users/beku8/repos","events_url":"https://api.github.com/users/beku8/events{/privacy}","received_events_url":"https://api.github.com/users/beku8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-22T12:03:11Z","updated_at":"2016-05-25T12:10:20Z","closed_at":null,"body":"For some reason, my home ISP throws ```411 Content length required``` error when I try to post something to the cloud rest endpoint thru locally running zuul proxy. \r\nSo I tried setting ```content-length``` header manually from a custom filter like:\r\n```ctx.addZuulRequestHeader(\"content-length\", ctx.getRequest().getHeader(\"Content-Length\"));```\r\n\r\nBut it throws \r\n```\r\ncom.netflix.zuul.exception.ZuulException: Forwarding error...\r\nCaused by: org.apache.http.ProtocolException: Content-Length header already present\r\n\tat org.apache.http.protocol.RequestContent.process(RequestContent.java:95)\r\n\tat org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:131)\r\n\tat org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:165)\r\n\tat org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:485)\r\n\tat org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)\r\n```\r\n\r\nI'm using Zuul 1.0.28. Am I doing anything wrong? I'm not even sure if the original problem would disappear if I manage to set this header manually. Any suggestion, anything would be very much appreciated.\r\n\r\np.s: ISP allows my post request when its done thru Feign.\r\n\r\nThis issue is originally posted at https://github.com/Netflix/zuul/issues/223.\r\n"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/comments/221554434","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/1042#issuecomment-221554434","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1042","id":221554434,"user":{"login":"beku8","id":1091489,"avatar_url":"https://avatars.githubusercontent.com/u/1091489?v=3","gravatar_id":"","url":"https://api.github.com/users/beku8","html_url":"https://github.com/beku8","followers_url":"https://api.github.com/users/beku8/followers","following_url":"https://api.github.com/users/beku8/following{/other_user}","gists_url":"https://api.github.com/users/beku8/gists{/gist_id}","starred_url":"https://api.github.com/users/beku8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beku8/subscriptions","organizations_url":"https://api.github.com/users/beku8/orgs","repos_url":"https://api.github.com/users/beku8/repos","events_url":"https://api.github.com/users/beku8/events{/privacy}","received_events_url":"https://api.github.com/users/beku8/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T12:10:20Z","updated_at":"2016-05-25T12:10:20Z","body":"No. We have our microservices deployed to the cloudfoundry and we connect to it using locally running zuul to develop the UI section. For some weird reason one of the main ISP in our country (Mongolia) throws 411 error.\r\nAnyways I'm just trying to set the Content-Lenght header manually, hoping this will fix the problem. Probably this is more related to apache's http library?"}}
{"actor":{"display_login":"beku8"}}