Skip to main content

 
IBM Power Systems software  >  IBM i  > Software  > 

Net.Data for i5/OS

  
Overview News Library Education Support
Net.Data Recap No. 3

This is the third issue of Net.Data Recap! The goal is to ensure that you are aware of the various Net.Data enhancements and fixes that have been made available. Net.Data Recaps will be issued periodically, so come back and visit!

To get the features described, ensure you are on the right release of the i5/OS and that you have the latest Net.Data PTF loaded. The following enhancements are for i5/OS V4R5 and subsequent releases. Note that these enhancements may not be supported or may not yet be on other platforms.

GENERAL: Interpret HTTP Input
Indicate to Net.Data that form or URL data coming in from a client should not be interpretted by setting DTW_INTERPRET_HTTP_INPUT to NO. For example:

  DTW_INTERPRET_HTTP_INPUT  NO

The default is YES. When DTW_INTERPRET_HTTP_INPUT is set to YES, Net.Data will interpret data coming in from a client, which includes resolving variable references, which may reveal sensitive information if the data is returned back to the client. Setting DTW_INTERPRET_HTTP_INPUT to NO will ensure that any variable references in form or URL data will not be resolved to a value.

BUILT-IN FUNCTION: DTW_SENDMAIL
In addition to supporting the sending of attachments, DTW_SENDMAIL now allows you to set the content-type sub-type of the message that is to be sent. Previously, the message content-type was always set by Net.Data to text/plain (the sub-type was always set to plain). An additional parameter on the DTW_SENDMAIL built-in function can be set to an alternate sub-type, such as html. For example, to send a message as an html message:

                                                                                
   @DTW_SENDMAIL(from,to,msg,"","","","","","","", "html")