# HTTP request and curl - basic question

**URL:** https://discourse.nodered.org/t/http-request-and-curl-basic-question/48557
**Category:** General
**Created:** [18 July 2021 21:23 UTC](https://discourse.nodered.org/t/http-request-and-curl-basic-question/48557 "2021-07-18T21:23:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hazymat](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hazymat/32/108159_2.png) [@hazymat](https://discourse.nodered.org/u/hazymat)
#### Post date: [18 July 2021 21:23 UTC](https://discourse.nodered.org/t/http-request-and-curl-basic-question/48557/1 "2021-07-18T21:23:39Z")

</div>

What am I doing wrong?

Here's my HTTP In node:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/9/79207bde8436aa91f95bbf12856dc0e7af3c1fd8.png)

If I enter this into command line:  
`curl.exe http://10.1.1.37:1880/red/UPS?message=hellothere`

It works nicely.

But if I enter this:  
`curl.exe -d "message=hello there" http://10.1.1.37:1880/red/UPS`

I get this returned on command line:

```auto
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /red/UPS</pre>
</body>
</html>

```

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [18 July 2021 22:38 UTC](https://discourse.nodered.org/t/http-request-and-curl-basic-question/48557/2 "2021-07-18T22:38:29Z")

</div>

If I’ve read about curl and html get/put correctly, the first case is a GET and the second is a PUT so I would expect that /red/UPS deals with GETs and not PUTs

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [16 September 2021 22:39 UTC](https://discourse.nodered.org/t/http-request-and-curl-basic-question/48557/3 "2021-09-16T22:39:19Z")

</div>

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