JavaScript is required to use Bungie.net

#Community

9/30/2012 6:54:27 AM
7

Something I just discovered about the site functionality

I've always wondered why, where the page numbers are under the forum banners, we can't simply type in the page number to which page we'd like to see, and instead can only go forward/backward a single page or to the last page. I know, it's hardly necessary, but nonetheless it's irritating when you need to do so. Two minutes ago, however, I found that I can just type a number into the address bar as indicated [quote]http://www.bungie.net/forums/topics.aspx?forumID=3&topicRepeater1-p=[b]777[/b][/quote] and it redirects to that exact page (777). This works on every forum, including private groups, saved threads, and private messages. So, am I bestowed with amazing intellect, or am I just really behind the times? [Edited on 09.29.2012 10:55 PM PDT]

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

View Entire Topic
  • They are called GET parameters in a HTTP GET request, and they work as such. From your example, this portion of the URL is sent as part of the request line* in a GET request: " /forums/topics.aspx?forumID=3&topicRepeater1-p=777". On the server-side, this is then (typically) split into two chunks: Path: /forums/topics.aspx Parameters: forumID=3&topicRepeater1-p=777 The path is (again, typically) used to identify the script or program which will "handle" the request. Also note the "?" is discarded since it's only used as a method splitting the path from the parameters. Each parameter is then split by the ampersand (&) character to form key-value pairs: - [KEY, VALUE] - forumID, 3 - topicRepeater1-p, 777 From this point the variables can be used to construct the page/document/response to be delivered (especially relevant in dynamic pages). In this case, filtering posts by a specific forum and further retrieving a subset of the initial result through an offset (probably something like the desired page number multiplied by the number of topics displayed by default to that same result of that calculation plus the number of topics again). It's fun to play with them, and not just on this site. * For reference, in a POST request, the parameters are instead placed in the body of the request, but formatted in the same way. HTTP headers work in a similar way, but each key-value is split by a colon, and each key-value pair is split by a carriage return and a line feed (\r\n) with an extra set given after the headers to split them from the HTTP body.

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

You are not allowed to view this content.
;
preload icon
preload icon
preload icon