- Greg Bergbower
- PowerBuilder
- Thursday, 2 December 2021 03:31 PM UTC
I'm running PB 2019 R3 Build 2703. I'm using RESTClient object to call SendGetRequest(). If the URL I'm passing exceeds 1325 characters in length, then SendGetRequest() returns -2. This equates to Invalid URL. I've tested the URL outside of PB with Postman and the response is valid so this appears to be an issue/limit with PB.
I tested using HTTPClient object as well, but it acts in the same manner as RESTClient object. i.e. get request fails when URL exceeds 1325.
Can you confirm, is 1325 the max length allowed for a URL with RESTClient and HTTPClient objects? If yes, then are there any work-arounds? Is the URL max length increased in newer, or future, PB versions?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.