• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

mystery by using the vvout_file Service

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • mystery by using the vvout_file Service

    I use the vvout_file service in two programs with different results after the download on the PC (xml and json files). The usage of the service is in both programs identical. But the result is different. The data has been completely transferred, but there is additional data at the end of the file.
    The following is added to the end of the file:

    Cache-Control: no-cache
    Content-type: application/json
    {"success" : true }
    ?
    How can I stop this?

  • #2
    Hi Norbert, please share a partial segment of the code you're using to generate the file output and the call to vvOut_file. The one that's appending the additional text.
    Last edited by robert.swanson; 10-23-2024, 09:33 AM.

    Comment


    • #3
      Hi Robert, i found the reason for the additional characters. The program has more functionality and does the following at the end.

      if wrk_Success = *on;
      SetResponse('success':'true');
      else;
      SetResponse('success':'false');
      endif;
      ?

      I prevent this when downloading the file and everything is OK.

      Comment

      Working...
      X