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

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"} '

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