curl-users
Re: MIME headers
Date: Fri, 30 Jan 2004 12:55:30 -0600
Just an update: cURL is sending its own headers, which are not what I
defined in $mime_headers.
$mime_headers is like so:
<? $mime_headers="POST /AUTHORIZE HTTP/1.0\nMIME-Version:
1.0\nContent-type: application/X1"; ?>
..and so on..
but my provider receives something totally different... for one thing,
they are saying my Content-type: is coming in as
CONTENT-TYPE: APPLICATION/X-WWW-FORM-URLENCODED
cURL just ignores my -H and does whatever it does by default.
What am I doing wrong? Thanks for any help,
Kris
Kristopher Spencer-Yates wrote:
> Hello,
>
> I'm trying to connect via cURL (with PHP) to send some MIME headers
> and some XML. I have other XML systems I have created using this same
> method with no problem.
> <?
> exec("/usr/local/bin/curl -m 120 -H \"$mime_headers\" -d
> \"$xml_content\" $merchant_URL:$merchant_PORT -L",
> $return_message_array, $return_number);
> ?>
>
> Apparently this is not right because the provider is saying we are not
> sending the MIME headers correctly. So how do you do it? I am trying
> to connect to "Orbital Gateway". Anybody else here familiar with this
> service?
>
> Thanks for any help,
>
> Kris
>
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
>
> .
>
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-01-30