# Curl: (3) Port number ended with '\\'

**URL:** https://discuss.elastic.co/t/curl-3-port-number-ended-with/207377
**Category:** Elasticsearch
**Created:** [November 11, 2019, 3:08pm UTC](https://discuss.elastic.co/t/curl-3-port-number-ended-with/207377 "2019-11-11T15:08:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Coder\_HK](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/coder_hk/32/57814_2.png) [@Coder\_HK](https://discuss.elastic.co/u/Coder_HK)
#### Post date: [November 11, 2019, 3:08pm UTC](https://discuss.elastic.co/t/curl-3-port-number-ended-with/207377/1 "2019-11-11T15:08:48Z")

</div>

I am newbie to Elastic Search and I am trying to perform a -XPOST operation to insert new data but it gives me the above error ..

Here's my Ubuntu terminal commands  
curl -XPOST http:\localhost:9200/classes/class/1/ -d ' \> {"title":"algorithm","Professor":"john"} '

---

<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: [December 9, 2019, 3:08pm UTC](https://discuss.elastic.co/t/curl-3-port-number-ended-with/207377/2 "2019-12-09T15:08:52Z")

</div>

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