Poco follow redirect

Hi I am trying to load facebook profile images, according to the facebook api I can find one by using the users username. That works fine but the problem is that the link is redirected to it’s actual location, when using Poco I get a 302 response code, is there a way to allow ofURLFileLoader to follow redirects?

not, with ofURLFileLoader, ofxHttpUtils suports 3xx redirections in the experimental branch:

https://github.com/arturoc/ofxHttpUtils/tree/experimental

if the status code is 302, just read the url field in the response and make a new request to that url