{"action":"created","issue":{"url":"https://api.github.com/repos/request/request/issues/1605","labels_url":"https://api.github.com/repos/request/request/issues/1605/labels{/name}","comments_url":"https://api.github.com/repos/request/request/issues/1605/comments","events_url":"https://api.github.com/repos/request/request/issues/1605/events","html_url":"https://github.com/request/request/issues/1605","id":81547879,"number":1605,"title":"pipe GET request to POST multipart ","user":{"login":"mattador1","id":7074260,"avatar_url":"https://avatars.githubusercontent.com/u/7074260?v=3","gravatar_id":"","url":"https://api.github.com/users/mattador1","html_url":"https://github.com/mattador1","followers_url":"https://api.github.com/users/mattador1/followers","following_url":"https://api.github.com/users/mattador1/following{/other_user}","gists_url":"https://api.github.com/users/mattador1/gists{/gist_id}","starred_url":"https://api.github.com/users/mattador1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattador1/subscriptions","organizations_url":"https://api.github.com/users/mattador1/orgs","repos_url":"https://api.github.com/users/mattador1/repos","events_url":"https://api.github.com/users/mattador1/events{/privacy}","received_events_url":"https://api.github.com/users/mattador1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-27T17:39:50Z","updated_at":"2015-05-28T10:04:48Z","closed_at":null,"body":"Is it possible to make somethig like this.\r\n\r\n```js\r\n var formData = {\r\n       keyId: 'myId',\r\n       attachment: request.get({uri : url, headers: {'Authorization': 'Basic ' + key}})\r\n };\r\n request.post({uri: 'post_url.com', formData: formData, headers: {'Authorization': 'Basic ' + key}\r\n          \r\n    }, function optionalCallback(err, httpResponse, body) {\r\n})\r\n```\r\n\r\nCause I want to fetch image and attach it to attachment, but I want to stream it as attachment. I don't want to load GET request (attachment) in memory on save it on hdd.\r\nI'm trying this and server (which is third-party) response with bad request. When I do\r\nattachment: fs.createReadStream(...path) all is ok and I can send attachment but than I have to save it to disk first. Is is possible to just pass it through. I want to have my server as transparent server(with possibility to add 'keyId' and than just forward it. \r\n\r\n\r\nThx.\r\n"},"comment":{"url":"https://api.github.com/repos/request/request/issues/comments/106258102","html_url":"https://github.com/request/request/issues/1605#issuecomment-106258102","issue_url":"https://api.github.com/repos/request/request/issues/1605","id":106258102,"user":{"login":"simov","id":1694112,"avatar_url":"https://avatars.githubusercontent.com/u/1694112?v=3","gravatar_id":"","url":"https://api.github.com/users/simov","html_url":"https://github.com/simov","followers_url":"https://api.github.com/users/simov/followers","following_url":"https://api.github.com/users/simov/following{/other_user}","gists_url":"https://api.github.com/users/simov/gists{/gist_id}","starred_url":"https://api.github.com/users/simov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simov/subscriptions","organizations_url":"https://api.github.com/users/simov/orgs","repos_url":"https://api.github.com/users/simov/repos","events_url":"https://api.github.com/users/simov/events{/privacy}","received_events_url":"https://api.github.com/users/simov/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T10:04:48Z","updated_at":"2015-05-28T10:04:48Z","body":"Actually now I'm seeing the you are using basic auth, this might be related to a bug that was fixed previously, but not published on npm yet, can you try with the latest master instead?"}}