{"issue":{"state":"closed","created_at":"2011-10-24T16:21:43Z","updated_at":"2011-11-29T16:21:26Z","user":{"gravatar_id":"c9f7ba922b3d797fc99f5e25ee80e5d8","id":651797,"url":"https://api.github.com/users/foxx","avatar_url":"https://secure.gravatar.com/avatar/c9f7ba922b3d797fc99f5e25ee80e5d8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"foxx"},"comments":5,"body":"Please see the following example\r\n\r\n```\r\n\r\n_data = \"\"\"callCount=1 \r\npage=/internetsales/iSnapVehicle.xhtml?_gk=_c083894BB-4392-5290-8580-DE159D03B2B0_k9C5EF4F0-0269-3CC9-0994-633224433265\r\n\r\nhttpSessionId=\r\nscriptSessionId=DD51AC690A8BC3BEDB1AEDF1B2A7A9DD575\r\nc0-scriptName=PresentationRulesFacade\r\nc0-methodName=execute\r\nc0-id=0\r\nc0-param0=string:VehicleForm c0-param1=string:VehicleForm%3Amake\r\nc0-param2=string:%7B%22VehicleForm%3AdaysDriven%22%20%3A%20%221%22%2C%20%22VehicleForm%3AmilesDriven%22%20%3A%20%220%22%2C%20%22VehicleForm%3Ayear%22%20%3A%20%221998%22%2C%20%22VehicleForm%3AestimatedMileage%22%20%3A%20%22%22%2C%20%22VehicleForm%3AodometerReading%22%20%3A%20%22%22%2C%20%22VehicleForm%3Amake%22%20%3A%20%22AUDI%22%2C%20%22VehicleForm%3Ayear-txt%22%20%3A%20%22%22%2C%20%22VehicleForm%3Amake-txt%22%20%3A%20%22%22%2C%20%22VehicleForm%3Amodel-txt%22%20%3A%20%22%22%2C%20%22VehicleForm%3AmodelDesc%22%20%3A%20%22Other%22%2C%20%22VehicleForm%3Amodel%22%20%3A%20%22Other%22%2C%20%22VehicleForm%3Abodystyle%22%20%3A%20%22VAN%22%7D\r\nc0-param3=boolean:false\r\nbatchId=327\r\n\"\"\"\r\n\r\nprint len(_data)\r\n_headers = {\r\n    'referer' : 'https://sales2.geico.com/internetsales/iSnapVehicle.xhtml?_gk=_c083894BB-4392-5290-8580-DE159D03B2B0_k9C5EF4F0-0269-3CC9-0994-633224433265'\r\n}\r\nr = requests.post(\r\n    url = 'https://sales2.geico.com/internetsales/dwr/call/plaincall/PresentationRulesFacade.execute.dwr',\r\n    data = _data,\r\n    headers = _headers\r\n)\r\n\r\nprint r.request.headers\r\n{'referer': 'https://sales2.geico.com/internetsales/iSnapVehicle.xhtml?_gk=_c083894BB-4392-5290-8580-DE159D03B2B0_k9C5EF4F0-0269-3CC9-0994-633224433265', 'Accept-Encoding': 'identity, deflate, compress, gzip', 'User-Agent': 'python-requests/0.7.3'}\r\n```\r\n\r\nIn this example, the 'Content-Length' is missing.\r\n\r\nHaven't got any spare time to try and patch the bug - as this was only a quick test to explore new libs.\r\n\r\nCal\r\n\r\n[revised post 3 - multiple edits due to mistake on bug report]","assignee":null,"number":223,"id":2035471,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"title":"Content-Length is missing","closed_at":"2011-11-13T00:11:35Z","html_url":"https://github.com/kennethreitz/requests/issues/223","url":"https://api.github.com/repos/kennethreitz/requests/issues/223","milestone":null},"action":"created","comment":{"created_at":"2011-11-29T16:21:26Z","updated_at":"2011-11-29T16:21:26Z","user":{"gravatar_id":"fec41ebb8626f00ca9c645d20a79e8fe","id":68035,"url":"https://api.github.com/users/zoranzaric","avatar_url":"https://secure.gravatar.com/avatar/fec41ebb8626f00ca9c645d20a79e8fe?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"zoranzaric"},"body":"foxx, I thought setting params was correct for a POST.  What am I doing wrong?\r\n\r\nkennethreitz, the Google API that I'm talking to responds with 411 (Length Required)","id":2933795,"url":"https://api.github.com/repos/kennethreitz/requests/issues/comments/2933795"}}