English 中文(简体)
如何向欧共体2级法院发出一项特别调查申请?
原标题:How to send a POST request to an EC2 instance?

我在诺德创建了一个简单的亚特兰大,并在一个以安普顿图为基地的EC2级案例中将其部署。 我还在我的EC2上安装了 no。 我曾试图从PPOSTMAN发出一份PPOST申请,并附上JSON档案。 我的APICS将从收到的POST申请中提取所需数据,并将储存在Mongo Atlas服务器上。 我复制了我的私人IP地址,在POSTMAN使用。 我可以听到的是,会议时间已经很短。

https://i.stack.imgur.com/lwJbl.png”rel=“nofollow noreferer”> POSTMAN,EC2 IMAGES

我只需要能够向我的欧共体2级法院发出一份《特别行动计划》要求。

我的服务器代码如下:

const http = require( http ); const app=require( ./app.js );
const port=process.env.PORT || 3001;
const server=http.createServer(app);
server.listen(port);

这是我的ur式:

https://ec2-xxxx-xxxx-xxxx-xxxx.us-east-2.compute.amazonaws.com:3001/products

为此,我发现PPOSTMAN的错误:

rror: 请求书已送达。

当我尝试一种不同的格式xx.xxxxxx.xxxx/3001/products时, 我有不同的错误:

Error:link ECONNREFUSED。

我认为,我的格式有些错误,我不相信。

https://i.stack.imgur.com/V3C5v.png”rel=“nofollow noreferer”>inactive-rules-picture-1

https://i.stack.imgur.com/wYfej.png” rel=“nofollow noreferer”>inactive Rules-picture-2

问题回答

Here s my server code-

const http://www.un.org。

const port=process.env.PORT || 3001;

const server=http.createServer(app);

服务器。

this is my url format- https://ec2-xxxx-xxxx-xxxx-xxxx.us-east-2.compute.amazonaws.com:3001/products. For this, I get this error on POSTMAN- Error: Request timed out. And when I try a different format-xxxx.xxxx.xxxx.xxxx/3001/products, I get a different error-Error: connect ECONNREFUSED. I think there s something wrong with my format, I am not sure.

inbound-rules-picture-1

inbound rules-picture-2

https://i.stack.imgur.com/wYfej.png” rel=“nofollow noreferer”>。





相关问题
Allow RESTful DELETE method in asp.net mvc?

im currently setting up asp.net to accept DELETE http verb in the application. However, when i send "DELETE /posts/delete/1" i always get a 405 Method not allow error. I tried to take a look at ...

Most appropriate API for URL shortening service

I ve just finished an online service for shortening URLs (in php5 with Zend Framework); you can enter an URL and you get an short URL (like tinyurl and such sites). I m thinking about the API for ...

Use HTTPClient or HttpUrlConnection? [closed]

We re implementing a REST client on JRE 1.4. Seems two good options for a client REST framework are HttpClient and HttpUrlConnection. Is there a reason to use HttpClient over the JRE s ...

Why can t I find the truststore for an SSL handshake?

I m using the Spring RESTTemplate on the client side to make calls to a REST endpoint. The client in this case is a Spring app and Tomcat is the servlet container. I m running into issues making a ...

Which Http redirects status code to use?

friendfeed.com uses 302. bit.ly uses 301. I had decided to use 303. Do they behave differently in terms of support by browsers ?

Three Step Buyonline The RESTful way

We are re-developing our buyonline functionality and we are doing it the RESTful way. The process is a three step one and the customer is asked to enter data at each step. Let s say the three URL s ...

热门标签