Hi, I’m new to HTTPAPI and sure that this has been asked a few times but my mailing list searches have not provided an answer, possibly my powers are weak. I’m trying to consume a RESTful service and my selection is not working, I get a response
from the server but it is not filtering as I requested, ie it is responding with all emails and all fields. The URL I’m accessing is https://graph.microsoft.com/v1.0/me/messages?$select=sender,subject&$filter=importance eq 'high' but in the debug log it is showing GET /v1.0/me/messages?¢select=sender,subject&¢filter=importance%20eq%20'high' HTTP/1.1 The dollar characters are being shown as ¢ (cent) The debug file is CCSID 819 and my job is 37, looking at the debug log in hex it shows - - - - + - - - - * - - - - + - - - - * ----+----*----+----* 65733FA2 73656C65 63743D73 656E6465 722C7375 es?$select=sender,su The dollar is showing as A2 which is the cent sign in the extended ASCII table. My code looks like this (CCSID 37 source file) D URL S 300a varying D response S 100000a varying URL = '' + '$select=sender,subject&' + '$filter=importance eq ''high'''; http_xproc(HTTP_Point_Addl_Header:%paddr(add_hdr)); monitor; response = http_string('GET' : URL : *omit : *omit); on-error; errorMsg = http_error(); sndmsg(errorMsg); endmon; What should I do to get the correct this? Thanks |
-- _______________________________________________ Ftpapi mailing list Ftpapi@xxxxxxxxxxxxxxxxxxxxxx http://scottklement.com/mailman/listinfo/ftpapi