in reply to Special character in authorization_basic

Have you a sample of code that you have verified works with a "plain" password, one that doesn't contain any angle brackets? It would be good to have for comparison.
  • Comment on Re: Special character in authorization_basic

Replies are listed 'Best First'.
Re^2: Special character in authorization_basic
by balakrishna_bk (Initiate) on Feb 11, 2016 at 03:35 UTC

    Hi Yes, i tried with plain password and it works, thats when i realised that the problem was with special character in my password. Error: mismatched tag at line 1, column 1101, byte 1101 at /usr/lib64/perl5/XML/Parser.pm line 187

      Error: mismatched tag at line 1, column 1101, byte 1101 at /usr/lib64/perl5/XML/Parser.pm line 187

      Wait, are you putting $password in the body of the XML as well as in the auth header? Probably best to output the XML so you can see where the malformation occurs (ie. what's at byte 1101).

        No, i tried passing my password in header and even then i got same error. There isnt much in xml.

        <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:com:document:rfc:functions"> <soap:Header/> <soap:Body> <urn:_-A1SSPC_-SPC_INCIDENT_CREATION> <IV_CHECK_GROUP>value</IV_CHECK_GROUP> <IV_CHECK_ID>value</IV_CHECK_ID> <IV_EVENT_KEY>value</IV_EVENT_KEY> <IV_DESCRIPTION>************* Alert Details ************* Description </IV_DESCRIPTION> <IV_INCIDENT_PROCESS>SYSTEM INCIDENT</IV_INCIDENT_PROCESS> <IV_ISSUE_CATEGORY>30042</IV_ISSUE_CATEGORY> <IV_TEAM>CF_IOT</IV_TEAM> <IV_PRIORITY>3</IV_PRIORITY> <IV_TENANT_ID>000000000000000001</IV_TENANT_ID> <IV_PROCESS>32</IV_PROCESS> <IV_SUBJECT>subject</IV_SUBJECT> </urn:_-A1SSPC_-SPC_INCIDENT_CREATION> </soap:Body> </soap:Envelope>