Issue 30991  —   UHTTP.SEND can cause crash when content-type header is empty

Status:   Solved in 10.2.01

Solution available in patch(es):      X705    G101

Description:

 Summary:
 The UHTTP operation SEND can cause a crash when the
 content-type header is empty.

 Environment:
 * Version: Uniface 9.6.03 / MX02 (and higher)
 * Operating System: OS independent
 * Database: DBMS independent

 Symptoms:
 The UHTTP operation SEND can cause a crash when the
 content-type header is empty.

 Consider the following code:

  newinstance "UHTTP", vUHTTP
  vURL = <someUrl>
  putitem/id vHeader = "Content-Type", ""
  vUHTTP->SEND(vURL, "GET", "", "", vHeader, vContent, vResponse)
  deleteinstance vUHTTP

 When the UHTTP SEND operation is called, a crash can occur.

Workaround:

 Make sure that the content-type header is specified with a colon instead of an
 equal sign.
 
 E.g.
  Rather use
              vHeader = "Content-Type:"
  Instead of
              vHeader = "Content-Type="

Notes: