curl-users
Re: Howto question - SOAP on the command line
Date: Wed, 6 Apr 2005 13:24:42 -0400 (EDT)
Thanks for the response, but it did not work.
All I get in the file is:
<HTML><HEAD><TITLE>401 Unauthorized</TITLE></HEAD><BODY><H1>401
Unauthorized</H1></BODY></HTML>
So curl must be doing something different 'cause the same user/password
works with the wget command
On Wed, 6 Apr 2005, Ralph Mitchell wrote:
> I believe that would translate to something like:
>
> curl -u username:password --data-binary soap.xml -H 'Accept-Encoding:gzip'
> -o outputFile.gz http://webservice.foobar.com/theService
>
> all on one line.
>
> Ralph Mitchell
>
>
> On Apr 6, 2005 11:23 AM, Dan White <ygor_at_comcast.net> wrote:
> > I would like to use curl (on a command line/in a script) to do the
> > equivalent of this wget command :
> >
> > wget --http-user='username' --http-passwd='password'
> > --post-file='soap.xml' --header='Accept-Encoding:gzip'
> > http://webservice.foobar.com/theService
> > --output-document=outputFile.gz
> >
> > But I cannot figure it out from the documentation.
> >
> >
>
>
Received on 2005-04-06