curl-1.3.8: Haskell binding to libcurl
Copyright(c) Galois Inc 2007-2009
LicenseBSD3
MaintainerSigbjorn Finne <sof@galois.com>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell98

Network.Curl.Post

Description

Representing and marshalling formdata (as part of POST uploads/submissions.) If you are only looking to submit a sequence of name=value pairs, you are better off using the CurlPostFields constructor; much simpler.

Documentation

type Header = String #

data HttpPost #

Constructors

HttpPost 

Fields

Instances

Instances details
Eq HttpPost # 
Instance details

Defined in Network.Curl.Post

Methods

(==) :: HttpPost -> HttpPost -> Bool

(/=) :: HttpPost -> HttpPost -> Bool

Show HttpPost # 
Instance details

Defined in Network.Curl.Post

Methods

showsPrec :: Int -> HttpPost -> ShowS

show :: HttpPost -> String

showList :: [HttpPost] -> ShowS

data Content #

Constructors

ContentFile FilePath 
ContentBuffer (Ptr CChar) Long 
ContentString String 

Instances

Instances details
Eq Content # 
Instance details

Defined in Network.Curl.Post

Methods

(==) :: Content -> Content -> Bool

(/=) :: Content -> Content -> Bool

Show Content # 
Instance details

Defined in Network.Curl.Post

Methods

showsPrec :: Int -> Content -> ShowS

show :: Content -> String

showList :: [Content] -> ShowS

multiformString :: String -> String -> HttpPost #

marshallPosts :: [HttpPost] -> IO (Ptr HttpPost) #

curl_slist_append :: Ptr Slist_ -> CString -> IO (Ptr Slist_) #

curl_slist_free :: Ptr Slist_ -> IO () #

curl_formfree :: Ptr a -> IO () #