Lazarus
Programming => Networking and Web Programming => Topic started by: jksmithiii on November 10, 2021, 03:31:06 pm
-
Fun with TFPHttpClient. Simple api call works fine from browser and Postman. Client returns 301. So I set AllowRedirects. Still same error result. Anybody run into this? Maybe comparing req headers is the issue.
Thanks,
James
-
Ok, class func SimpleGet doesn't work in this case. Regular Get does.
-
Can you provide source code, please?
-
Ok, class func SimpleGet doesn't work in this case. Regular Get does.
Unfortunately that's true because SimpleGet actually construct the class then simply calls Get, AllowRedirect is not set. This could be an optional parameter to retain backward compatibility, though.