收藏
回答

访问企业微信gettoken地址返回1.1.1.10/ac_portal/needauth.html

问题类型 API/组件名称 终端类型 微信版本 基础库版本
Bug 企业微信认证 工具 原企业号 无版本

appid:wx22ec92cb1aa5c5ef

agentId:1000052

时间:2020-11-20 09:23:23,

请求:https://qyapi.weixin.qq.com/cgi-bin/gettoken?

响应: "HTTP/1.0 302 Moved Temporarily[\r][\n]"

"Location: http://1.1.1.10:80/ac_portal/needauth.html?vlanid=0&url=https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=wx22ec92cb1aa5c5ef&corpsecret=【隐藏。。。】[\r][\n]

服务后台请求过程如下:

2020-11-20 09:23:23,787 DEBUG [org.apache.http.impl.conn.DefaultManagedHttpClientConnection] - http-outgoing-1062: set socket timeout to 30000

2020-11-20 09:23:23,787 DEBUG [org.apache.http.impl.execchain.MainClientExec] - Executing request GET /cgi-bin/gettoken?corpid=wx22ec92cb1aa5c5ef&corpsecret=[隐藏。。。。] HTTP/1.1

2020-11-20 09:23:23,787 DEBUG [org.apache.http.impl.execchain.MainClientExec] - Target auth state: UNCHALLENGED

2020-11-20 09:23:23,787 DEBUG [org.apache.http.impl.execchain.MainClientExec] - Proxy auth state: UNCHALLENGED

2020-11-20 09:23:23,787 DEBUG [org.apache.http.headers] - http-outgoing-1062 >> GET /cgi-bin/gettoken?corpid=wx22ec92cb1aa5c5ef&corpsecret=[隐藏。。。。] HTTP/1.1

2020-11-20 09:23:23,787 DEBUG [org.apache.http.headers] - http-outgoing-1062 >> Host: qyapi.weixin.qq.com

2020-11-20 09:23:23,787 DEBUG [org.apache.http.headers] - http-outgoing-1062 >> Connection: Keep-Alive

2020-11-20 09:23:23,788 DEBUG [org.apache.http.headers] - http-outgoing-1062 >> User-Agent: Apache-HttpClient/4.5.2 (Java/11.0.9)

2020-11-20 09:23:23,788 DEBUG [org.apache.http.headers] - http-outgoing-1062 >> Accept-Encoding: gzip,deflate

2020-11-20 09:23:23,788 DEBUG [org.apache.http.wire] - http-outgoing-1062 >> "GET /cgi-bin/gettoken?corpid=wx22ec92cb1aa5c5ef&corpsecret=[隐藏。。。。] HTTP/1.1[\r][\n]"

2020-11-20 09:23:23,788 DEBUG [org.apache.http.wire] - http-outgoing-1062 >> "Host: qyapi.weixin.qq.com[\r][\n]"

2020-11-20 09:23:23,788 DEBUG [org.apache.http.wire] - http-outgoing-1062 >> "Connection: Keep-Alive[\r][\n]"

2020-11-20 09:23:23,788 DEBUG [org.apache.http.wire] - http-outgoing-1062 >> "User-Agent: Apache-HttpClient/4.5.2 (Java/11.0.9)[\r][\n]"

2020-11-20 09:23:23,788 DEBUG [org.apache.http.wire] - http-outgoing-1062 >> "Accept-Encoding: gzip,deflate[\r][\n]"

2020-11-20 09:23:23,788 DEBUG [org.apache.http.wire] - http-outgoing-1062 >> "[\r][\n]"

2020-11-20 09:23:23,792 DEBUG [org.apache.http.wire] - http-outgoing-1062 << "HTTP/1.0 302 Moved Temporarily[\r][\n]"

2020-11-20 09:23:23,792 DEBUG [org.apache.http.wire] - http-outgoing-1062 << "Location: http://1.1.1.10:80/ac_portal/needauth.html?vlanid=0&url=https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=wx22ec92cb1aa5c5ef&corpsecret=[隐藏。。。。] \r][\n]"

2020-11-20 09:23:23,792 DEBUG [org.apache.http.wire] - http-outgoing-1062 << "Content-Type: text/html;[\r][\n]"

2020-11-20 09:23:23,792 DEBUG [org.apache.http.wire] - http-outgoing-1062 << "Content-Length: 14[\r][\n]"

2020-11-20 09:23:23,792 DEBUG [org.apache.http.wire] - http-outgoing-1062 << "[\r][\n]"

2020-11-20 09:23:23,793 DEBUG [org.apache.http.wire] - http-outgoing-1062 << "<h2>Moved</h2>"

2020-11-20 09:23:23,793 DEBUG [org.apache.http.headers] - http-outgoing-1062 << HTTP/1.0 302 Moved Temporarily

2020-11-20 09:23:23,793 DEBUG [org.apache.http.headers] - http-outgoing-1062 << Location: http://1.1.1.10:80/ac_portal/needauth.html?vlanid=0&url=https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=wx22ec92cb1aa5c5ef&corpsecret=[隐藏。。。。]

2020-11-20 09:23:23,793 DEBUG [org.apache.http.headers] - http-outgoing-1062 << Content-Type: text/html;

2020-11-20 09:23:23,793 DEBUG [org.apache.http.headers] - http-outgoing-1062 << Content-Length: 14

2020-11-20 09:23:23,793 DEBUG [org.apache.http.impl.client.DefaultRedirectStrategy] - Redirect requested to location 'http://1.1.1.10:80/ac_portal/needauth.html?vlanid=0&url=https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=wx22ec92cb1aa5c5ef&corpsecret=[隐藏。。。。] '

2020-11-20 09:23:23,793 DEBUG [org.apache.http.impl.execchain.RedirectExec] - Resetting target auth state

2020-11-20 09:23:23,793 DEBUG [org.apache.http.impl.execchain.RedirectExec] - Redirecting to 'http://1.1.1.10:80/ac_portal/needauth.html?vlanid=0&url=https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=wx22ec92cb1aa5c5ef&corpsecret=[隐藏。。。。] ' via {}->http://1.1.1.10:80

2020-11-20 09:23:23,793 DEBUG [org.apache.http.impl.conn.DefaultManagedHttpClientConnection] - http-outgoing-1062: Close connection

最后一次编辑于  星期五 10:01
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签