http 返回 301问题处理

+ curl --header 'Authorization: Basic xx' --data project=ship_87894_6333-tx-fund-data_0 -i http://sonar.xx.com/api/projects/delete
10:00:58   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
10:00:58                                  Dload  Upload   Total   Spent    Left  Speed
10:00:58 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   254  100   216  100    38   3230    568 --:--:-- --:--:-- --:--:--  3272
10:00:58 HTTP/1.1 301 Moved Permanently
10:00:58 Date: Tue, 13 Jul 2021 02:00:58 GMT
10:00:58 Content-Type: text/html
10:00:58 Content-Length: 216
10:00:58 Connection: keep-alive
10:00:58 Location: https://sonar.xx.com/api/projects/delete
10:00:58 X-Frame-Options: SAMEORIGIN
10:00:58 
10:00:58 
10:00:58 
10:00:58 301 Moved Permanently
10:00:58 
10:00:58 

301 Moved Permanently

10:00:58
tengine
10:00:58 10:00:58

将 http 请求改为https 即可

你可能感兴趣的:(java,学习)