Forum > Networking and Web Programming

301 from fphttpclient

(1/1)

jksmithiii:
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

jksmithiii:
Ok, class func SimpleGet doesn't work in this case. Regular Get does.

M[a]nny:
Can you provide source code, please?

Leledumbo:

--- Quote from: jksmithiii on November 10, 2021, 04:00:58 pm ---Ok, class func SimpleGet doesn't work in this case. Regular Get does.

--- End quote ---
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.

Navigation

[0] Message Index

Go to full version