# Hi, Can you help me with post?

**URL:** <https://discuss.elastic.co/t/hi-can-you-help-me-with-post/10774>\
**Category:** Elasticsearch\
**Created:** [February 18, 2013, 1:04pm UTC](https://discuss.elastic.co/t/hi-can-you-help-me-with-post/10774 "2013-02-18T13:04:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tehila\_madmon](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@tehila\_madmon](https://discuss.elastic.co/u/tehila_madmon)\
**Post date:** [February 18, 2013, 1:04pm UTC](https://discuss.elastic.co/t/hi-can-you-help-me-with-post/10774/1 "2013-02-18T13:04:29Z")

</div>

When I try to do:  
"curl -XPUT [http://localhost:9200](http://localhost:9200) -d '{ "name" : "Dilbert Brown" }' "

I get this message:

No handler found for uri [/] and method [PUT]curl: (6) Could not resolve  
host: name; Host not found

curl: (7) couldn't connect to host at :80

curl: (6) Could not resolve host: Dilbert Brown; Host not found

curl: (3) [globbing] unmatched close brace/bracket at pos 1

Someone knows what's the problem?

Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Rafal\_Kuc\_3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafal_kuc_3/32/799_2.png) [@Rafal\_Kuc\_3](https://discuss.elastic.co/u/Rafal_Kuc_3)\
**Post date:** [February 18, 2013, 1:10pm UTC](https://discuss.elastic.co/t/hi-can-you-help-me-with-post/10774/2 "2013-02-18T13:10:59Z")

</div>

Hello!

Try the following:

curl -XPUT '[http://localhost:9200/INDEX\_NAME/TYPE\_NAME/ID](http://localhost:9200/INDEX_NAME/TYPE_NAME/ID)' -d '{"name" : "Dilbert Brown"}'

where:

- INDEX\_NAME is the name of your index

- TYPE\_NAME is the name of your type

- ID is the identifier of the document

So the whole command looks like this for example:

curl -XPUT '[http://localhost:9200/users/user/1](http://localhost:9200/users/user/1)' -d '{"name" : "Dilbert Brown"}'

_--_

Regards,

Rafał Kuć

Sematext :: [http://sematext.com/](http://sematext.com/) _:: Solr - Lucene - Nutch - ElasticSearch_

When I try to do:

"curl -XPUT [http://localhost:9200](http://localhost:9200) -d '{ "name" : "Dilbert Brown" }' "

I get this message:

No handler found for uri [/] and method [PUT]curl: (6) Could not resolve host: name; Host not found

curl: (7) couldn't connect to host at :80

curl: (6) Could not resolve host: Dilbert Brown; Host not found

curl: (3) [globbing] unmatched close brace/bracket at pos 1

Someone knows what's the problem?

Thanks

--

You received this message because you are subscribed to the Google Groups "elasticsearch" group.

To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:50am UTC](https://discuss.elastic.co/t/hi-can-you-help-me-with-post/10774/3 "2017-07-06T02:50:57Z")

</div>


