c# - One particular user has a 403 Forbidden when communicating with our auth servers -
A specific user is facing a problem communicating with our authentication server, so I decided that I request the diagnostic information, mainly by sending us the status code
when it is talking to our ethical server (that is specific address).
The header request code has a cookie container to keep information about this session and allows not redirection (on purpose Is):
list & lt; String & gt; Header = new list & lt; String & gt; (); HttpWebRequest webRequest = (HttpWebRequest) WebRequest.Create (url); WebRequest.CookieContainer = New Cookie Container (); WebRequest.AllowAutoRedirect = false; (HttpWebResponse webResponse = (HttpWebResponse) using webRequest.GetResponse ()) {headers.Add ("StatusCode:" + (int) webResponse.StatusCode); Header. Add ("Status Details:" + webResponse.StatusDescription); Foreach (string key in webResponse.Headers.Keys) {if (! Key.ToString (.) Equals ("Location")) {var value = webResponse.Headers [key]; Header. Add (key + ":" + value); }}
The desired output should be a 302
as we redirect all those who try to do anything but Xxxxxxxx.com
Back to main domain
User has received the output:
According to status code documentation, & lt; 403 & gt; Forbidden
Meaning:
The server understood the request, but refusing to complete it will not help the authorization and the request should not be repeated. If the request method was not the head and the server has not been fulfilled why the request is made to the public, then it should describe the reason for denial in the unit. If the customer does not want to make this information available to the customer, then the status code 404 (not found) can be used instead.
Since this is the only user who was on this issue, we know that this is not our server which is on this issue, and with this firewall configuration, potentially this particular problem can be found on their servers Is within
I was wondering what I can do at this time that it should help to improve this user 403
error?
Comments
Post a Comment