ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

http_req API

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

  • http_req API

    Hi Scott,
    I am using http_req api to send an xml string to destination.
    It was working good for a while and then started receiving Error #73 in http_debug log.
    (SetError() #73: CCSID conversion failed: The value specified for the argument is not correct.)

    Following options are set in program:
    http_setCCSIDs( 1208: 0 );
    http_setOption('network-ccsid': '1208');

    The api is invoked as below:
    rc = http_req('POST' :
    URL :
    *omit :
    resp :
    *omit :
    %subst(xmlData : 1 : xmlLength) :
    'text/xml; charset=UTF-8');

    Please advice if I am missing something or this could be due to some changes happened at the other side (server).

    Let me know if you need further information.

    Thanks,
    Prakash.

  • #2
    No, this doesn't sound like it could be related to the server.

    Can you create a trace file that shows the problem and send it to me? This is done by inserting code like this at the top of your program:

    Code:
    http_debug(*on: '/tmp/my-trace-file.txt');
    This logs diagnostics about the activity inside of httpapi to the specified IFS file. If you can send me this file, it'll tell me a lot more about the problem.

    Comment


    • #3
      Hi Scott, I have created the trace file. Please let me know your email id, so I shall share it. Thanks!

      Comment


      • #4
        sk AT scottklement.com

        Comment


        • #5
          Thanks Scott..Shared the trace log to the given email id.

          Comment


          • #6
            Hi Scott, just now came to know that the email has not been sent out from email server. Following up with the network team. Will update as soon as it is resolved. Sorry for the delay.

            Comment


            • #7
              Hi Scott, the email server issue is resolved and resent the email on Friday afternoon. Please assist.

              Comment

              Working...
              X