Last active
February 24, 2016 14:33
-
-
Save Heimdell/cd952bb6c7e290f209bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# 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