# Powershell alternative command for curl

**URL:** <https://discuss.elastic.co/t/powershell-alternative-command-for-curl/264679>\
**Category:** Elasticsearch\
**Created:** [February 18, 2021, 10:01am UTC](https://discuss.elastic.co/t/powershell-alternative-command-for-curl/264679 "2021-02-18T10:01:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Usman](https://avatars.discourse-cdn.com/v4/letter/u/b487fb/32.png) [@Usman](https://discuss.elastic.co/u/Usman)\
**Post date:** [February 18, 2021, 10:01am UTC](https://discuss.elastic.co/t/powershell-alternative-command-for-curl/264679/1 "2021-02-18T10:01:38Z")

</div>

Hi,

I need the alternative for below command in windows power shell or .bat.

curl --insecure -u user:password -X POST "[https://hostname:443/\_reindex?pretty](https://hostname:443/_reindex?pretty)" -H 'Content-Type: application/json' -d'  
{  
"source": {  
"index": "details"  
},  
"dest": {  
"index": "details\_copy"  
}  
}  
'

---

<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:** [March 18, 2021, 10:01am UTC](https://discuss.elastic.co/t/powershell-alternative-command-for-curl/264679/2 "2021-03-18T10:01:54Z")

</div>

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