Dear guest !

Welcome to Team Developer Community Forum. A place created by the community, for the community !

This is a resource for Q & A and discussion about everything related to OpenText Gupta Team Developer, SqlBase, TD Mobile and Report Builder.
It is the alternative for the OpenText customer forums which can only be accessed with an active support contract.

Please register your account now. It will make you part of the active community.
Also, this guest message will not be displayed for registered users.

Having an account gives you the opportunity to ask questions and get help from others.
We hope this free gathering will help you and the community getting forward!

Best regards,
The forum site admins.

[TD63/TD70] HTTPRequest class: fails when response initialised with STRING_Null

Post found bugs and possible workarounds.
Post Reply
Dave Rabelink
Founder/Site Admin
Posts: 114
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

[TD63/TD70] HTTPRequest class: fails when response initialised with STRING_Null

Post by Dave Rabelink » 13 Apr 2017, 08:34

Using HTTPRequest class from xmllib.apl.

Issue found on TD63 and TD70
(not tested in earlier versions)

When response string was initialized with "" before getting the response, the received response string is OK
When response string was initialized with STRING_Null before getting the response, the sample FAILS:
  • String has a buffer length
  • Tooltip in IDE shows the content of the variable and seems ok
  • String can not be used in API functions
  • TD can crash on API functions when string is used
  • Content of string can not be accessed
So there is a clear difference how a STRING_Null and "" buffer is handled in HTTPRequest.

Both ways of initializing the variable must be supported.
When STRING_Null, the buffer is corrupted and can lead to issues.

See testcase.
(8.53 KiB) Downloaded 1 time
  • First use: press test button to see the HTTPRequest works ok.
    It gets the response from
    After the request, the response is displayed in multiline and a text is searched in the response.
  • Check checkbox to make it fail. It will then use STRING_Null as init.
  • See uncommented code to make TD give errors or crash.
Sample is in TD63 format and a copy of the sample in TD70 format.

This defect has been registered as :
Ticket # 3013577: HTTPRequest class: fails when response initialised with STRING_Null

When TD defect number is known, I will update this thread.
Dave Rabelink

Join & participate on Team Developer Tips & Tricks Wiki
Download samples from TD Sample Vault
Videos on TDWiki YouTube Channel

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest