Recent

Author Topic: 301 from fphttpclient  (Read 3748 times)

jksmithiii

  • Newbie
  • Posts: 5
301 from fphttpclient
« 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

jksmithiii

  • Newbie
  • Posts: 5
Re: 301 from fphttpclient
« Reply #1 on: November 10, 2021, 04:00:58 pm »
Ok, class func SimpleGet doesn't work in this case. Regular Get does.

M[a]nny

  • Full Member
  • ***
  • Posts: 130
  • Dreamer
Re: 301 from fphttpclient
« Reply #2 on: November 16, 2021, 03:29:58 pm »
Can you provide source code, please?
Bad news: Time flies.
Good news: You are the pilot.

Don't try to be perfect, just be unique.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: 301 from fphttpclient
« Reply #3 on: December 07, 2021, 04:45:22 am »
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.

 

TinyPortal © 2005-2018