You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Lance Norskog <go...@gmail.com> on 2007/09/16 05:15:51 UTC
Wiki mistake in using 'curl'
In the wiki are various examples of using 'curl' to post data. Curl
requires "-X POST" arguments to do this. The examples do not have this.
Also the nice way to post a file to 'curl' is with '-T filename'.
Will someone with superpowers please fix?
Thanks,
Lance Norskog
Re: Wiki mistake in using 'curl'
Posted by Yonik Seeley <yo...@apache.org>.
On 9/15/07, Lance Norskog <go...@gmail.com> wrote:
> In the wiki are various examples of using 'curl' to post data. Curl
> requires "-X POST" arguments to do this.
Giving parameters such as -d or --data-binary seem to use POST.
However, there may be some older curl examples somehwere on the wiki
that don't work (perhaps because they don't supply the correct
content-type).
> Also the nice way to post a file to 'curl' is with '-T filename'.
I just tried this (as opposed to the @filename), and something is a
bit weird/different. Testing with netcat, it seems to pause a second
or two between the headers and the file being displayed.
> Will someone with superpowers please fix?
The wikis can be edited by anyone... just create yourself an account.
-Yonik