{"action":"created","issue":{"url":"https://api.github.com/repos/JoeDog/siege/issues/45","repository_url":"https://api.github.com/repos/JoeDog/siege","labels_url":"https://api.github.com/repos/JoeDog/siege/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/JoeDog/siege/issues/45/comments","events_url":"https://api.github.com/repos/JoeDog/siege/issues/45/events","html_url":"https://github.com/JoeDog/siege/issues/45","id":130809640,"number":45,"title":"Incorrect `content-type` header when POSTing a file","user":{"login":"therebelrobot","id":679178,"avatar_url":"https://avatars.githubusercontent.com/u/679178?v=3","gravatar_id":"","url":"https://api.github.com/users/therebelrobot","html_url":"https://github.com/therebelrobot","followers_url":"https://api.github.com/users/therebelrobot/followers","following_url":"https://api.github.com/users/therebelrobot/following{/other_user}","gists_url":"https://api.github.com/users/therebelrobot/gists{/gist_id}","starred_url":"https://api.github.com/users/therebelrobot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/therebelrobot/subscriptions","organizations_url":"https://api.github.com/users/therebelrobot/orgs","repos_url":"https://api.github.com/users/therebelrobot/repos","events_url":"https://api.github.com/users/therebelrobot/events{/privacy}","received_events_url":"https://api.github.com/users/therebelrobot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-02T20:36:33Z","updated_at":"2016-02-02T21:00:16Z","closed_at":null,"body":"I have a `url.txt` file with the following:\r\n\r\n```\r\nBASEURL=http://localhost:8000\r\n$(BASEURL)/post POST foo=bar&this=that&e=mc2\r\n$(BASEURL)/post POST < $HOME/.siege/fixtures/test.gif\r\n```\r\n\r\nThe `POST` with the form has the correct `content-type` header attached, but the `.gif` file, which should be sent with the `content-type` header of `image/gif` gets sent as `text/plain`, which then tried to render it as unicode in my log viewer. Is it possible to send non-text files via post with siege? I know it'd need to support streaming/chunking which I'm not sure if it supports. If it does support it, is it possible to turn on dynamic `content-type` headers for it to auto-detect, or maybe specify in the url.txt file?\r\n\r\nExcellent tool, I'm enjoying using it so far, just some edge cases like this I'm trying to work through. Thanks!"},"comment":{"url":"https://api.github.com/repos/JoeDog/siege/issues/comments/178816223","html_url":"https://github.com/JoeDog/siege/issues/45#issuecomment-178816223","issue_url":"https://api.github.com/repos/JoeDog/siege/issues/45","id":178816223,"user":{"login":"therebelrobot","id":679178,"avatar_url":"https://avatars.githubusercontent.com/u/679178?v=3","gravatar_id":"","url":"https://api.github.com/users/therebelrobot","html_url":"https://github.com/therebelrobot","followers_url":"https://api.github.com/users/therebelrobot/followers","following_url":"https://api.github.com/users/therebelrobot/following{/other_user}","gists_url":"https://api.github.com/users/therebelrobot/gists{/gist_id}","starred_url":"https://api.github.com/users/therebelrobot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/therebelrobot/subscriptions","organizations_url":"https://api.github.com/users/therebelrobot/orgs","repos_url":"https://api.github.com/users/therebelrobot/repos","events_url":"https://api.github.com/users/therebelrobot/events{/privacy}","received_events_url":"https://api.github.com/users/therebelrobot/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T21:00:16Z","updated_at":"2016-02-02T21:00:16Z","body":"Hey! Thanks for the speedy response! I'm using the config file to specify the url file, but I tried running it as you asked above:\r\n\r\n```\r\n─[$] siege -t 10S -g \"http://localhost:8000/post POST < /Users/therebelrobot/.siege/fixtures/test.gif\"\r\nPOST /post HTTP/1.0\r\nAccept: */*\r\nUser-Agent: theRebelSiege [en] (Siege; OS X)\r\nHost:httpbin.org\r\nConnection: close\r\nContent-type: text/plain\r\nContent-length: 7\r\n\r\nGIF89a�\r\n\r\nHTTP/1.1 200 OK\r\nDate: Tue, 02 Feb 2016 20:56:06 GMT\r\nContent-Type: application/json\r\nContent-Length: 394\r\nConnection: close\r\nServer: nginx\r\nAccess-Control-Allow-Origin: *\r\nAccess-Control-Allow-Credentials: true\r\nX-Kong-Upstream-Latency: 1553\r\nX-Kong-Proxy-Latency: 0\r\nVia: kong/0.6.0\r\n```\r\n\r\n> Because it should set the content type based on the file extension\r\n\r\nAt least from what I'm seeing with this gif, it doesn't seem to be catching it. Are gif files not supported? The gif file in specific I'm sending is this:\r\n\r\n![test](https://cloud.githubusercontent.com/assets/679178/12764121/d69a13e6-c9ac-11e5-9216-979c033052e7.gif)\r\n\r\nI'm running this on Mac OS X Yosemite, with the following output for `siege --version`:\r\n\r\n```\r\nSIEGE 4.0.0-beta5\r\n\r\nCopyright (C) 2016 by Jeffrey Fulmer, et al.\r\nThis is free software; see the source for copying conditions.\r\nThere is NO warranty; not even for MERCHANTABILITY or FITNESS\r\nFOR A PARTICULAR PURPOSE.\r\n```"}}