Re: Malformed URL
Date: Tue, 7 Apr 2009 17:52:39 +0200
On Tue, Apr 7, 2009 at 2:55 PM, Gottimukkala, Vidya
> Hi, I am trying to send an xml file to a URL (works as an API which accepts
> xml – data, authorization (xml element parameter) is also a part of xml
> file) . when I try to use the command as follows I get the error as
> The command I used: curl -v "/home/vidya/vidya_test1.xml" --header
> "Content-Type: text/xml" "https://members.ordermotion.com/hdde/xml/udi.asp"
> curl: (3) <url> malformed
> I am completely new to curl, and am trying to use it to POST an XML file to
> via HTTP request and then receive an xml response.
Maybe you want something like this? (untested)
curl -F "fieldname=@/home/vidya/vidya_test1.xml;type=text/xml"
or maybe "<" instead of "@". See the curl documentation for details.
You would have to find out what "fieldname" should be.
Also, you're on the wrong mailing list. I believe the one you want is here:
-- Michael Wood <esiotrot_at_gmail.com>Received on 2009-04-07