cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Mime Header/XML Post Request Paymentech submission failing

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 12 Aug 2005 22:53:52 +0200 (CEST)

On Fri, 12 Aug 2005, Susan D. Morrison wrote:

> curl -d <xml> " -H "MIME-Version: 1.0 /n -H " Content-type:
> application/PT126 /n " -H " Content-length: 876 /n " -H "
> Content-transfer-encoding: text /n " -H " Request-number: 1 /n " -H "
> Document-type: Request /n " -H " Interface-Version: Test 1.4 "
> <https://orbitalvar1.paymentech.net/authorize:443>
> https://orbitalvar1.paymentech.net/authorize:443

Each -H should be used like this:

  -H "Header-Name: Content of Header"

There should (most probably) be no initial spaces like you have in most of
your headers above and there should most certainly not be any "/n"
occurrances. curl will make sure that each header gets sent with the "proper"
end of line marker.

Example correction from your command line:

  -H "Content-type: application/PT126"

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-08-12