HTTP request and curl - basic question

What am I doing wrong?

Here's my HTTP In node:

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:

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

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

1 Like

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