Skip to content

Instantly share code, notes, and snippets.

@NathanHowell
Created November 8, 2012 14:53
Show Gist options
  • Save NathanHowell/f0e71c053e8b892c4c49 to your computer and use it in GitHub Desktop.
Save NathanHowell/f0e71c053e8b892c4c49 to your computer and use it in GitHub Desktop.
readTask = do
req' <- parseUrl "https://10.64.251.32/rest/api/latest/issue/BNAP-291"
manager <- newManager manSettings
let req'' = applyBasicAuth (pack "sandboxer") (pack "sandboxer") req'
runResourceT $ do
Response _ _ _ body <- http req'' manager
pBody <- body $$+- sinkParser json
liftIO $ print pBody
closeManager manager
return ()
where manSettings =
def
{ managerCheckCerts = \ _ _ -> return CertificateUsageAccept }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment