cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Using curl to access OpeNDAP

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 10 Jun 2015 00:31:52 +0200

On Tue, Jun 09, 2015 at 10:04:37PM +0000, Derek Goring wrote:
> If I enter this:
> http://nomads.ncep.noaa.gov:9090/dods/wave/mww3/20150609/
> multi_1.glo_30mext20150609_00z.asc?htsgwsfc[0:60][64:64][346:346]
> into a web browser, I get a list of data from NOAA's wave forecast database.
>
> Now, I'd like to automate this using curl but using this:
> curl "http://nomads.ncep.noaa.gov:9090/dods/wave/mww3/20150609/
> multi_1.glo_30mext20150609_00z.asc?htsgwsfc[0:60][64:64][346:346]" -o
> PegBay.txt
> gives me a globbing error just after the question mark.
>
> What am I doing wrong?

curl interprets the [ ] brackets itself to provide globbing. Use the -g option
to disable that.

>>> Dan
-------------------------------------------------------------------
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 2015-06-10