Home > Software engineering >  HTTP sent via post json data to the web, has been back to 403
HTTP sent via post json data to the web, has been back to 403

Time:10-13

Directly click on the links to access the json data via a browser
http://47.89.26.120/info/block/findBlocksByPage.do? page=1& Rows=15

But the way I sent by his command
 POST/info/block/findBlocksByPage. Do? page=1& Rows=15 HTTP/1.1 
Host: 47.89.26.120
The content-type: application/json
The Content - Length: 38
Connection: close
Accept: application/json

{
"Page" : "1",
"Rows" : "15"
}

Is always the question:
HTTP/1.1 403 Forbidden
Server: Apache - Coyote/1.1
The Set - cookies: JSESSIONID=C619406506E206226EDD8D55DC8FCBC1; Path=/; HttpOnly
Content-Type: text/html; Charset=utf-8
The Content - Language: en
The Content - Length: 1116
Date: Tue, 02 Aug 2016 06:06:52 GMT
Connection: close

 & lt; ! DOCTYPE html>    Apache Tomcat/8.0.36 - Error report <style type="text/CSS" & gt; H1 {the font-family: Tahoma, Arial, sans-serif. Color: white. Background - color: # 525 d76; The font - size: 22 px; } H2 {the font-family: Tahoma, Arial, sans-serif. Color: white. Background - color: # 525 d76; The font - size: 16 px; } H3 {the font-family: Tahoma, Arial, sans-serif. Color: white. Background - color: # 525 d76; font-size:14px; } BODY {the font-family: Tahoma, Arial, sans-serif. Color: black; Background - color: white. B} {the font-family: Tahoma, Arial, sans-serif. Color: white. Background - color: # 525 d76; P {} the font-family: Tahoma, Arial, sans-serif. Background: white; Color: black; The font - size: 12 px; } A {color: black; } A.n ame {color: black; }. The line {1 px height:; Background - color: # 525 d76; border: none; } & lt;/style>  <body> 

Type The Status report

Message Expected CSRF token not found. Has your session expired?

Description Access to the specified resource has had forbidden. & lt;/u>


CodePudding user response:

Prohibit access, directly using the browser can access, then use the GET way, don't use the POST

CodePudding user response:

Directly in your browser to http://47.89.26.120/info/block/findBlocksByPage.do? page=1& Rows=15
Is a GET request, you send a POST request,

CodePudding user response:

The get and post obviously did not distinguish,,,
  • Related