This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28383 - 'get cookie' is idempotent and should be implemented as a GET not a POST
Summary: 'get cookie' is idempotent and should be implemented as a GET not a POST
Status: RESOLVED FIXED
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Browser Testing and Tools WG
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on: 20860
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-31 15:32 UTC by Simon Stewart
Modified: 2015-04-01 09:19 UTC (History)
2 users (show)

See Also:


Attachments

Description Simon Stewart 2015-03-31 15:32:18 UTC
In https://w3c.github.io/webdriver/webdriver-spec.html#getcookie "getCookie" is defined as a POST. This is done so that the name can be passed through. However, since this doesn't change the state of the browser or the session, this would be better modeled as a GET with the name parameter added to the URL. The suggested template would be:

/session/{sessionId}/cookie/{name}