You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i also had to use CurlHttpHeaders to set content-type: text/xml;charset='utf-8', why isn't there an explicit constructor for this as in HttpPost or CurlReferer, CurlUserAgent, CurlCookie, etc?
The text was updated successfully, but these errors were encountered:
I was briefly stuck on that too; the libcurl naming of that option is somewhat confusing, but the CURLOPT_POSTFIELDS documentation mentions that it's neither converted nor encoded, while that in the bindings sounds rather like it has to be in the "name=value" format.
i needed to replicate curl's option for a soap request:
the server won't accept multipart as with
CurlHttpPost
. the docs forCurlPostFields
(at top of https://hackage.haskell.org/package/curl-1.3.8/docs/Network-Curl-Post.html and https://hackage.haskell.org/package/curl-1.3.8/docs/Network-Curl.html#v:curlPost) indicate it should be a list ofname=value
Strings, so i was stuck for a long time looking for some other option that didn't involve naming the value. eventually it occurred to me to just try it without a name, which worked.i also had to use
CurlHttpHeaders
to setcontent-type: text/xml;charset='utf-8'
, why isn't there an explicit constructor for this as inHttpPost
orCurlReferer
,CurlUserAgent
,CurlCookie
, etc?The text was updated successfully, but these errors were encountered: