cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

error: Invalid XML request: content not allowed in prolog

From: <david_at_findfirstconsultant.com>
Date: Wed, 20 Dec 2006 14:22:27 -0800

I can't seem to get curl to send and xml file the same way as a POST from an HTML
form.

When I use a form like this, I get a nice response from the host.

<form name="entry" method="post"
    action="https://payments-reports.paypal.com/test-reportingengine">
<textarea name="xml" cols="80" rows="24"><?xml version="1.0" encoding="UTF-8"?>
<!-- the XML goes here -->
   </textarea>
<input type="submit">
</form>

If I save the XML in a file and do this, I get "Invalid XML request: content not
allowed in prolog"

>curl -F "xml=@datasafe.xml" https://payments-reports.paypal.com/test-reportingengine

Why would there be any difference?
Am I missing some curl syntax?
Received on 2006-12-20

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET