cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Howto question - SOAP on the command line

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Wed, 6 Apr 2005 21:03:35 -0500

If the userid or password contains non-alphanumeric characters, you
may need to put quotes around that part, so that the shell doesn't get
confused.

Ralph

On Apr 6, 2005 12:24 PM, Dan White <ygor_at_comcast.net> wrote:
> 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-07