cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Malformed URL

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 7 Apr 2009 22:53:43 -0600

Please don't hijack a existing thread when starting a new topic.

On Tue, Apr 07, 2009 at 08:55:25AM -0400, Gottimukkala, Vidya wrote:
> 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 things you're giving it two URLs, not a file to send to a URL. You probably
want the --upload-file option before the file name.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2009-04-08