Uploaded image for project: 'Reported Issues'
  1. Reported Issues
  2. RI-3859

UHTTP only sends Header/Content parameter when using PUT/POST Method

    XMLWordPrintable

    Details

    • Type: Maintenance
    • Status: Fixed
    • Environment:

      +Uniface Versions : 9.6.07/MX06, 9.7.01 and up
      +Operating System : OS independent
      +Database System : All

    • Old bug number:
      31200
    • Patch version:
      F204,G404
    • Workaround available:
      Hide
      There is no known workaround for this problem.
      Show
      There is no known workaround for this problem.

      Description

      Summary:
      Uniface: Since version 9.6.07 (patch MX06) the UHTTP component only sends the
      Header and Content parameters with a request in case the HTTP method PUT or
      POST is used. Before version 9.6.07 the Header and Content parameters were
      always sent (when specified) regardless of the HTTP method used.

      Symptoms:
      Since version 9.6.07 (patch MX06) the UHTTP component only sends the Header
      and/or Content parameter with a request in case the HTTP method PUT or POST is
      used. Before version 9.6.07 the Header and Content parameters were always sent
      (when specified) regardless of the HTTP method used.

      1. Consider the following code:

      newinstance "UHTTP", vUHTTP
      vURL = "http://server/some_url"
      putitem/id vheaders, "Accept", "text/xml"
      putitem/id vHeaders, "Content-Type", "application/soap+xml;charset=UTF-8"
      vContent = "GET method"
      activate "UHTTP".send(vURL, "GET","", "", vHeaders, vContent, vResponse)

      2. When using MX06 then the following request is sent (this is the
      RAW output captured by the Web Debugger; like e.g. Fiddler):

      "GET http://server/some_url HTTP/1.1
      User-Agent: Uniface 9.6
      Host: server
      Accept: /
      Proxy-Connection: Keep-Alive"

      3. When using the patch X605(A) the following request is sent:

      "GET http://server/some_url HTTP/1.1
      Accept: text/xml
      Content-Type: application/soap+xml;charset=UTF-8
      User-Agent: Uniface 9.6
      Host: server
      Content-Length: 10

      GET method"

      It is still possible to send the headers with all methods when setting the flag
      code "8" (using the UHTTP operation SET_FLAGS) that was introduced with version
      9.6.07 (patch MX06). There, however, is no comparable flag code for the Content
      parameter.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            thiamers Thijs van Amersfoort
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: