cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: New and already have the need for help

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 17 Jun 2012 23:21:55 +0200 (CEST)

On Sun, 17 Jun 2012, Herman, Dorothy wrote:

> curl.exe -x --data "@c:\curl-7.26.0-devel-mingw
> 32\bin\denied.txt" put https://server:8444/csa/rest/catalog/40289451379f45230
> 1379f61f68f0037/approval/4028945137e4b5cd0137f03f488712f8/approver?userIdentifie
> r=4028945137a478810137b5819d8b1639
> curl: (5) Could not resolve proxy: --data; No data record of requested type

See, you're using -x but you're not specifying _which_ proxy to use so it uses
'--data' as the name of your proxy...

Also, your description says you should use PUT and content-type
application/xml which you don't.

I would expect the command line to be more like:

$ curl -T file-with-XML-inside -H 'Content-type: application/xml'

https://server:8444/catalog/<id>/approval/<id>/approver?userIdentifier=something

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-06-17