# Using curl -XGET,-XPUT on cmd Windows?

**URL:** <https://discuss.elastic.co/t/using-curl-xget-xput-on-cmd-windows/11124>\
**Category:** Elasticsearch\
**Created:** [March 13, 2013, 4:44am UTC](https://discuss.elastic.co/t/using-curl-xget-xput-on-cmd-windows/11124 "2013-03-13T04:44:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nhan248](https://avatars.discourse-cdn.com/v4/letter/n/bc8723/32.png) [@nhan248](https://discuss.elastic.co/u/nhan248)\
**Post date:** [March 13, 2013, 4:44am UTC](https://discuss.elastic.co/t/using-curl-xget-xput-on-cmd-windows/11124/1 "2013-03-13T04:44:45Z")

</div>

Hello ,all  
I have a problem,i using elasticsearch on windows but i can run command on commandlinne windows  
,but on linux it ok!  
Vd:  
curl -XPUT '[http://127.0.0.1:9200/\_river/my\_jdbc\_river/\_meta](http://127.0.0.1:9200/_river/my_jdbc_river/_meta)' -d '{  
"type" : "jdbc",  
"jdbc" : {  
"driver" : "com.mysql.jdbc.Driver",  
"url" : "jdbc:mysql://localhost:3306/gate",  
"user" : "root",  
"password" : "root",  
"sql" : "select \* from news"  
},  
"index" : {  
"index" : "news",  
"type" : "news"  
}  
}'  
Or curl -XGET “localhost:9200/news/news/\_search?pretty&q=\*”

I installed url on my windows

are you know that? can point to me ?

thanks all!

---

<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:46am UTC](https://discuss.elastic.co/t/using-curl-xget-xput-on-cmd-windows/11124/2 "2017-07-06T02:46:53Z")

</div>


