Search code examples
browsergethttpcookie

Cookies, HTTP GET, and Query Strings


The United States District Court for the Southern District of New York in re Doubleclick Inc. stated:

"GET information is submitted as part of a Web site's address or "URL," in what is known as a "query string." For example, a request for a hypothetical online record store's selection of Bon Jovi albums might read: http://recordstore.hypothetical.com/search?terms=bonjovi. The URL query string begins with the "?" character meaning the cookie would record that the user requested information about Bon Jovi.

Is it true that a URL query string with a "?" would have the cookie record the user requested information? If so, what RFC/standard includes this?

Edit: I understand the United States District Court doesn't define standards, but I would like to have something concrete to note that they were incorrect.


Solution

  • If you read the whole document, you'll note that they say

    DoubleClick's cookies only collect information from one step of the above process: Step One. The cookies capture certain parts of the communications that users send to DoubleClick-affiliated Web sites. They collect this information in three ways: (1) "GET" submissions, (2) "POST" submissions, and (3) "GIF" submissions.

    They are describing a process used by DoubleClick, not an internet standard.

    You (and anyone else, including DoubleClick) can take information that is available to you (including information that might be sent as part of a GET submission) and store it in a cookie.

    You should interpret the sentence in question (in context) like this:

    1. DoubleClick stores information from the query string in a cookie.
    2. The URL query string is the portion of a URL that begins with the "?" character.
    3. The query string portion of the hypothetical URL is "Bon Jovi".
    4. DoubleClick's process would use a cookie to record that the user requested information about Bon Jovi

    Supported Conclusion:

    DoubleClick takes/took information from a URL query string (which is the part of the URL that begins with a "?") and uses a cookie to record information that the user requested.

    Unsupported Conclusion:

    A URL query string with a "?" would have the cookie record the user requested information. There exists some RFC that describes this behavior.