DataPower

 View Only
  • 1.  Does DataPower support HTTP GET requests with a body

    Posted 3 days ago

    Hello,

    Capability related Question:

    I am looking to know the capability of DataPower with respect to if DataPower support sending or receiving HTTP GET requests with a body. Thanks



    ------------------------------
    Asim Khan
    ------------------------------


  • 2.  RE: Does DataPower support HTTP GET requests with a body

    Posted 3 days ago

    Hi Asim, DataPower will block any attempt to send a GET request with payload. The HTTP specification does not really forbid GET requests with payload but it says "A client SHOULD NOT generate content in a GET request unless it is made directly to an origin server that has previously indicated, in or out of band, that such a request has a purpose and will be adequately supported." (see https://www.rfc-editor.org/rfc/rfc9110.html#name-get).

    On the other hand, the specification does not stipulate that a GET with data must be supported. IMHO there exists a common agreement that a GET request should not contain any payload (see also https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET).



    ------------------------------
    Pierce Shah
    ------------------------------