cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
Re: error: Invalid XML request: content not allowed in prolog
On Wed, Dec 20, 2006 at 02:22:27PM -0800, david_at_findfirstconsultant.com wrote:
> I can't seem to get curl to send and xml file the same way as a POST from an HTML
> When I use a form like this, I get a nice response from the host.
> <form name="entry" method="post"
> <textarea name="xml" cols="80" rows="24"><?xml version="1.0" encoding="UTF-8"?>
> <!-- the XML goes here -->
> <input type="submit">
> If I save the XML in a file and do this, I get "Invalid XML request: content not
> allowed in prolog"
> >curl -F "email@example.com" https://payments-reports.paypal.com/test-reportingengine
> Why would there be any difference?
> Am I missing some curl syntax?
You want the -d option instead of -F. -F is usually reserved for "uploads"
from a form. Remember to URL-encode the data in the file!
http://www.MoveAnnouncer.com The web change of address service
Let webmasters know that your web site has moved
Received on 2006-12-21
These mail archives are generated by hypermail.
Page updated November 12, 2010.
File upload with ASP.NET
web site info