# Curl no URL specified

**URL:** <https://discuss.elastic.co/t/curl-no-url-specified/177739>\
**Category:** Elasticsearch\
**Created:** [April 21, 2019, 3:14am UTC](https://discuss.elastic.co/t/curl-no-url-specified/177739 "2019-04-21T03:14:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndyB](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@AndyB](https://discuss.elastic.co/u/AndyB)\
**Post date:** [April 21, 2019, 3:14am UTC](https://discuss.elastic.co/t/curl-no-url-specified/177739/1 "2019-04-21T03:14:08Z")

</div>

How come the following terminal command:

```
curl -H "Content-Type: application/json" -XGET
'http://localhost:9200/southbay_xenforo211/_search' -d '{
  "query": {
	"match": {
	  "message": "test1234"
	}
  }
}'

```

comes back with this error:

```
[southbay@server forums211]$ curl -H "Content-Type: application/json" -XGET
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
[southbay@server forums211]$ 'http://localhost:9200/southbay_xenforo211/_search' -d '{
> "query": {
> "match": {
> "message": "test1234"
> }
> }
> }'
```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 21, 2019, 4:57am UTC](https://discuss.elastic.co/t/curl-no-url-specified/177739/2 "2019-04-21T04:57:49Z")

</div>

> [@AndyB](#):
>
> curl -H "Content-Type: application/json" -XGET '[http://localhost:9200/southbay\_xenforo211/\_search](http://localhost:9200/southbay_xenforo211/_search)'

That needs to be one line.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 19, 2019, 4:57am UTC](https://discuss.elastic.co/t/curl-no-url-specified/177739/3 "2019-05-19T04:57:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
