While doing some data analysis I put together an application to pull the list of moderators for a site from
When I attempt to grab this page, either through my application or, for example,
wget, I receive a 302 response directing back to
GET /users?tab=moderators HTTP/1.1 Accept-Encoding: gzip User-Agent: Java/1.7.0_55 Host: stackoverflow.com Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive
HTTP/1.1 302 Found Cache-Control: private Content-Type: text/html; charset=utf-8 Location: /users?tab=reputation&filter=all X-Frame-Options: SAMEORIGIN X-Request-Guid: <redacted> Set-Cookie: <redacted> Date: Sun, 12 Apr 2015 20:41:18 GMT Content-Length: 153 <html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="/users?tab=reputation&filter=all">here</a>.</h2> </body></html>
Why is this response being received, and what do I need to include in the request to avoid it? I do not run into this issue when directly requesting any other pages on the site, and I do not run into this issue visiting
/users?tab=moderators in a browser (even when not logged in).