curl-users
RE: How to: text/plain post
Date: Fri, 5 Aug 2005 10:01:13 -0500
Send it in as a header: -H"Content-Type:text/plain"
________________________________
From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] On Behalf Of Richard Mercer
Sent: Thursday, August 04, 2005 8:14 PM
To: curl-users_at_cool.haxx.se
Subject: How to: text/plain post
I'm using command line curl on Windows and want to do a POST with
Content-type=text/plain, not application/x-www-form-urlencoded. The
manual and examples are not helping me figure out how to do it. I have
used: 'curl -d @<filename> http://host:port/...' and the data is
received but since the receiving application does not expect urlencoded
data it does not decode it and then fails to process it properly.
What are the appropriate curl switches needed to do this?
Thanks,
Rick
This e-mail is confidential. If you are not the intended recipient, you must not disclose or use the information contained in it. If you have received this e-mail in error, please tell us immediately by return e-mail to Email.Control_at_sentry.com and delete the document.
E-mails containing unprofessional, discourteous or offensive remarks violate Sentry policy. You may report employee violations by forwarding the message to Email.Control_at_sentry.com.
No recipient may use the information in this e-mail in violation of any civil or criminal statute. Sentry disclaims all liability for any unauthorized uses of this e-mail or its contents.
This e-mail constitutes neither an offer nor an acceptance of any offer. No contract may be entered into by a Sentry employee without express approval from an authorized Sentry manager.
Warning: Computer viruses can be transmitted via e-mail. Sentry accepts no liability or responsibility for any damage caused by any virus transmitted with this e-mail.
Received on 2005-08-05