{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/ecafc7bd0da20d488af7ff1b7b25bcbe?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ecafc7bd0da20d488af7ff1b7b25bcbe","url":"https://api.github.com/users/mwawrusch","login":"mwawrusch","id":481276},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-11-02T08:39:44Z","closed_at":"2011-11-02T08:39:44Z","comments":1,"url":"https://api.github.com/repos/pgte/nock/issues/8","body":"I would like to use the verbatim output of curl, including all the headers, store that in a file and use it to mock a request. Right now it seems that this is not possible (I might be mistaken)\r\n\r\nThe reason for this is that I am doing a lot of API, Oauth2 work that requires certain content present in header fields, and the only way to correctly test this is  to use the exact output from curl (everything else seems to be prone to error). ","html_url":"https://github.com/pgte/nock/issues/8","number":8,"title":"Allow mocking at a lower level than json","id":2118788,"created_at":"2011-11-02T07:21:44Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/50c758737b034075682a7f1e4fddab44?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"50c758737b034075682a7f1e4fddab44","url":"https://api.github.com/users/pgte","login":"pgte","id":47910},"updated_at":"2011-11-02T08:39:44Z","url":"https://api.github.com/repos/pgte/nock/issues/comments/2600869","body":"You can reply a string:\r\n  .reply(status, string)\r\nOr a file:\r\n  .replyWithFile(status, filePath)","id":2600869,"created_at":"2011-11-02T08:39:44Z"}}