Skip to content

Instantly share code, notes, and snippets.

@Heimdell
Last active February 24, 2016 14:33
Show Gist options
  • Save Heimdell/cd952bb6c7e290f209bd to your computer and use it in GitHub Desktop.
Save Heimdell/cd952bb6c7e290f209bd to your computer and use it in GitHub Desktop.
{-# LANGUAGE OverloadedStrings #-}
import Network.Wreq (post, partFile, responseBody)
import Control.Lens ((^.))
import Data.ByteString.Lazy.Char8 as BS
main = do
response <- post "http://www.tipjar.com/cgi-bin/test" [partFile "test-part" "Uploader.hs"]
BS.putStrLn (response^.responseBody)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment