java http post 400错误
在本地开发环境中,调用第三方接口是没有问题的,正常返回。
Request URL:http://192.168.1.142:8090/chn/channel/getAgreementAreas
Request Method:POST
Status Code:200
Remote Address:192.168.1.142:8090
Referrer Policy:no-referrer-when-downgrade
request header:
Accept:application/json, text/plain, */*
Accept-Encoding:gzip, deflate
Accept-Language:zh-CN,zh;q=0.8
access_token:6fa7dd286de24672bc97f7b7b569a3f3
Connection:keep-alive
Content-Length:26
Content-Type:application/json
Cookie:JSESSIONID=6188108B9EF534BE7137C634F41F6936
请求参数:
{agreementProvCode: null}
agreementProvCode
部署在正式环境中(linux),一直返回400错误,通过抓包,看到请求参数完全一样
Request URL:http://ip:8090/chn/channel/getAgreementAreas
Request Method:POST
Status Code:200
Remote Address:ip:8090
Referrer Policy:no-referrer-when-downgrade
request header:
Accept:application/json, text/plain, */*
Accept-Encoding:gzip, deflate
Accept-Language:zh-CN,zh;q=0.8
access_token:9f172468fd71421f8e3a1d360001a015
Connection:keep-alive
Content-Length:26
Content-Type:application/json
Cookie:JSESSIONID=5F6A51E9790E412B6A52238AB31937D4
User-Agent:Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1
各位大神,这是怎么回事?需要设置什么东西么?
Request URL:http://192.168.1.142:8090/chn/channel/getAgreementAreas
Request Method:POST
Status Code:200
Remote Address:192.168.1.142:8090
Referrer Policy:no-referrer-when-downgrade
request header:
Accept:application/json, text/plain, */*
Accept-Encoding:gzip, deflate
Accept-Language:zh-CN,zh;q=0.8
access_token:6fa7dd286de24672bc97f7b7b569a3f3
Connection:keep-alive
Content-Length:26
Content-Type:application/json
Cookie:JSESSIONID=6188108B9EF534BE7137C634F41F6936
请求参数:
{agreementProvCode: null}
agreementProvCode
部署在正式环境中(linux),一直返回400错误,通过抓包,看到请求参数完全一样
Request URL:http://ip:8090/chn/channel/getAgreementAreas
Request Method:POST
Status Code:200
Remote Address:ip:8090
Referrer Policy:no-referrer-when-downgrade
request header:
Accept:application/json, text/plain, */*
Accept-Encoding:gzip, deflate
Accept-Language:zh-CN,zh;q=0.8
access_token:9f172468fd71421f8e3a1d360001a015
Connection:keep-alive
Content-Length:26
Content-Type:application/json
Cookie:JSESSIONID=5F6A51E9790E412B6A52238AB31937D4
User-Agent:Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1
各位大神,这是怎么回事?需要设置什么东西么?
...全文
相关推荐
java_http_post.zip_http服务端_服务器接收http
使用POST方式由客户端向服务器端发送数据,并接收来自服务器端的回馈
Ajax报错400的参考解决办法
Failed to load resource: the server responded with a status of 400 (Bad Request) 报错代码为400的错误的原因:基本上都是前台传的数据格式不正确造成的,但是这个格式如何不正确,就得看如何理解这个数据到底是怎么在传的啦。 我这只是简单的记录下,我这个报错400的原因,要是和你的不一样呢,也是有可能的。 写下我的代码报错400,的原因: 前台代码: $.ajax({ url: SUBSYSTEM_APP_NAME + "appportmanage/saveEditAppPortManage", type: "po
java web HTTP协议讲解
java web HTTP协议讲解
HttpClient发送post请求.pdf
httpclient发送post请求
java发送http请求并获取状态码的简单实例
下面小编就为大家带来一篇java发送http请求并获取状态码的简单实例。小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧


Web 开发
