开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 1512|回复: 14
收起左侧

[求助] GET访问返回303,取不到Location

[复制链接]
结帖率:100% (1/1)
发表于 2022-11-8 23:24:53 | 显示全部楼层 |阅读模式   四川省成都市
重定向也设置为真了,cookie也核对了,协yi头也加了,怎么返回的Location总是为空啊? VX图片_20221108232251.jpg VX图片_20221108232259.jpg
头像被屏蔽
结帖率:85% (109/128)
发表于 2022-11-8 23:38:52 | 显示全部楼层   贵州省黔东南苗族侗族自治州
把协yi头带上去
回复 支持 反对

使用道具 举报

结帖率:100% (1/1)

签到天数: 1 天

 楼主| 发表于 2022-11-8 23:41:11 | 显示全部楼层   四川省成都市
Hnys 发表于 2022-11-8 23:38
把协yi头带上去

带上试过了还是取不出来
回复 支持 反对

使用道具 举报

结帖率:100% (1/1)

签到天数: 10 天

发表于 2022-11-9 01:10:16 | 显示全部楼层   河南省郑州市
把两个方法 都抓下包  然后看包哪里不一样
回复 支持 反对

使用道具 举报

签到天数: 23 天

发表于 2022-11-9 08:43:05 | 显示全部楼层   河北省石家庄市
你不打算发下网址吗,别人怎么帮你
回复 支持 反对

使用道具 举报

头像被屏蔽
结帖率:85% (109/128)
发表于 2022-11-9 12:04:31 | 显示全部楼层   贵州省黔东南苗族侗族自治州
liangmoumou 发表于 2022-11-8 23:41
带上试过了还是取不出来

把数据包发我,我给你看看
回复 支持 反对

使用道具 举报

结帖率:100% (1/1)

签到天数: 1 天

 楼主| 发表于 2022-11-9 15:16:05 | 显示全部楼层   四川省成都市
番茄吧 发表于 2022-11-9 08:43
你不打算发下网址吗,别人怎么帮你

网址是公司的nei网,需要v*n才能登录  
回复 支持 反对

使用道具 举报

结帖率:100% (1/1)

签到天数: 1 天

 楼主| 发表于 2022-11-9 15:18:04 | 显示全部楼层   四川省成都市
Hnys 发表于 2022-11-9 12:04
把数据包发我,我给你看看

请求 URL: https://idaas.yundasys.com:10443/api/bff/v1.2/commons/sp_logged?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiZW50ZXJwcmlzZV9tb2JpbGVfcmVzb3VyY2UiLCJiZmZfYXBpX3Jlc291cmNlIl0sInVzZXJfbmFtZSI6IjQwOTg4NjAwNSIsInNjb3BlIjpbInJlYWQiXSwiZXhwIjoxNjY4MDA2NjEzLCJhdXRob3JpdGllcyI6WyJST0xFX0VORF9VU0VSIl0sImp0aSI6IjE0OGI0MzE2LWRlNTMtNDM3OS05YTI1LWU4ZDFiNmU1MzkyZCIsImNsaWVudF9pZCI6ImQ4MDEzNWVkYjg4Yjc4NGU5ZjBkZjkyYmYwNjAwMjBmM2pmaFV6ZTBaTTgifQ.hTeF93AUKGrBf-bmYCn0fsi9BBAz3xxIHwTax1eT3aE&sp_code=50caf33faa21b7fad9d47f19b7181c2eBUlLXjPmTR9&application_key=yundaplugin_cas_apereo128
请求方法: GET
状态代码: 303
远程地址: 10.182.8.199:10443
引用者策略: strict-origin-when-cross-origin
-----响应头-----
HTTP/1.1 303
Server: nginx
Date: Wed, 09 Nov 2022 07:10:14 GMT
Content-Length: 0
Connection: keep-alive
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
Access-Control-Allow-Headers: Content-Type,Authorization,x-requested-with,null
Access-Control-Allow-Methods: POST,GET,PUT,OPTIONS,DELETE
Access-Control-Allow-Credentials: true
Access-Control-Max-Age: 7200
Location: https://idaas.yundasys.com:10443/enduser/api/application/plugin_cas_apereo/yundaplugin_cas_apereo128/login?service=http%3A%2F%2Fzdzc.yundasys.com%3A18080%2Fydzc%2Findex.do
Content-Language: zh-CN
P3P: CAO PSA OUR
------请求头--------
GET /api/bff/v1.2/commons/sp_logged?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiZW50ZXJwcmlzZV9tb2JpbGVfcmVzb3VyY2UiLCJiZmZfYXBpX3Jlc291cmNlIl0sInVzZXJfbmFtZSI6IjQwOTg4NjAwNSIsInNjb3BlIjpbInJlYWQiXSwiZXhwIjoxNjY4MDA2NjEzLCJhdXRob3JpdGllcyI6WyJST0xFX0VORF9VU0VSIl0sImp0aSI6IjE0OGI0MzE2LWRlNTMtNDM3OS05YTI1LWU4ZDFiNmU1MzkyZCIsImNsaWVudF9pZCI6ImQ4MDEzNWVkYjg4Yjc4NGU5ZjBkZjkyYmYwNjAwMjBmM2pmaFV6ZTBaTTgifQ.hTeF93AUKGrBf-bmYCn0fsi9BBAz3xxIHwTax1eT3aE&sp_code=50caf33faa21b7fad9d47f19b7181c2eBUlLXjPmTR9&application_key=yundaplugin_cas_apereo128 HTTP/1.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6
Connection: keep-alive
Cookie: IDP_SEC_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiZW50ZXJwcmlzZV9tb2JpbGVfcmVzb3VyY2UiLCJiZmZfYXBpX3Jlc291cmNlIl0sInVzZXJfbmFtZSI6IjQwOTg4NjAwNSIsInNjb3BlIjpbInJlYWQiXSwiZXhwIjoxNjY4MDA2NjEzLCJhdXRob3JpdGllcyI6WyJST0xFX0VORF9VU0VSIl0sImp0aSI6IjE0OGI0MzE2LWRlNTMtNDM3OS05YTI1LWU4ZDFiNmU1MzkyZCIsImNsaWVudF9pZCI6ImQ4MDEzNWVkYjg4Yjc4NGU5ZjBkZjkyYmYwNjAwMjBmM2pmaFV6ZTBaTTgifQ.hTeF93AUKGrBf-bmYCn0fsi9BBAz3xxIHwTax1eT3aE; JSESSIONID=78DA40E2DD5BEEE35ECCE164BD879272; IDaaS_ID=2B9E498E6C9E46462AFE98031F5F04B551OA40WN84P
Host: idaas.yundasys.com:10443
Referer: https://idaas.yundasys.com:10443/frontend/login/
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.35
sec-ch-ua: "Microsoft Edge";v="107", "Chromium";v="107", "Not=A?Brand";v="24"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
回复 支持 反对

使用道具 举报

结帖率:100% (1/1)

签到天数: 1 天

 楼主| 发表于 2022-11-9 15:20:11 | 显示全部楼层   四川省成都市
Hnys 发表于 2022-11-9 12:04
把数据包发我,我给你看看

-------请求标头---------
GET /api/bff/v1.2/commons/sp_logged?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiZW50ZXJwcmlzZV9tb2JpbGVfcmVzb3VyY2UiLCJiZmZfYXBpX3Jlc291cmNlIl0sInVzZXJfbmFtZSI6IjQwOTg4NjAwNSIsInNjb3BlIjpbInJlYWQiXSwiZXhwIjoxNjY4MDA2NjEzLCJhdXRob3JpdGllcyI6WyJST0xFX0VORF9VU0VSIl0sImp0aSI6IjE0OGI0MzE2LWRlNTMtNDM3OS05YTI1LWU4ZDFiNmU1MzkyZCIsImNsaWVudF9pZCI6ImQ4MDEzNWVkYjg4Yjc4NGU5ZjBkZjkyYmYwNjAwMjBmM2pmaFV6ZTBaTTgifQ.hTeF93AUKGrBf-bmYCn0fsi9BBAz3xxIHwTax1eT3aE&sp_code=50caf33faa21b7fad9d47f19b7181c2eBUlLXjPmTR9&application_key=yundaplugin_cas_apereo128 HTTP/1.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6
Connection: keep-alive
Cookie: IDP_SEC_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiZW50ZXJwcmlzZV9tb2JpbGVfcmVzb3VyY2UiLCJiZmZfYXBpX3Jlc291cmNlIl0sInVzZXJfbmFtZSI6IjQwOTg4NjAwNSIsInNjb3BlIjpbInJlYWQiXSwiZXhwIjoxNjY4MDA2NjEzLCJhdXRob3JpdGllcyI6WyJST0xFX0VORF9VU0VSIl0sImp0aSI6IjE0OGI0MzE2LWRlNTMtNDM3OS05YTI1LWU4ZDFiNmU1MzkyZCIsImNsaWVudF9pZCI6ImQ4MDEzNWVkYjg4Yjc4NGU5ZjBkZjkyYmYwNjAwMjBmM2pmaFV6ZTBaTTgifQ.hTeF93AUKGrBf-bmYCn0fsi9BBAz3xxIHwTax1eT3aE; JSESSIONID=78DA40E2DD5BEEE35ECCE164BD879272; IDaaS_ID=2B9E498E6C9E46462AFE98031F5F04B551OA40WN84P
Host: idaas.yundasys.com:10443
Referer: https://idaas.yundasys.com:10443/frontend/login/
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.35
sec-ch-ua: "Microsoft Edge";v="107", "Chromium";v="107", "Not=A?Brand";v="24"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
回复 支持 反对

使用道具 举报

结帖率:100% (1/1)

签到天数: 1 天

 楼主| 发表于 2022-11-9 15:20:49 | 显示全部楼层   四川省成都市
Hnys 发表于 2022-11-9 12:04
把数据包发我,我给你看看

---------响应头-----------
HTTP/1.1 303
Server: nginx
Date: Wed, 09 Nov 2022 07:10:14 GMT
Content-Length: 0
Connection: keep-alive
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
Access-Control-Allow-Headers: Content-Type,Authorization,x-requested-with,null
Access-Control-Allow-Methods: POST,GET,PUT,OPTIONS,DELETE
Access-Control-Allow-Credentials: true
Access-Control-Max-Age: 7200
Location: https://idaas.yundasys.com:10443/enduser/api/application/plugin_cas_apereo/yundaplugin_cas_apereo128/login?service=http%3A%2F%2Fzdzc.yundasys.com%3A18080%2Fydzc%2Findex.do
Content-Language: zh-CN
P3P: CAO PSA OUR
回复 支持 反对

使用道具 举报

  高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表