libsoup and http redirect request



Hello all,
I have been trying to use the http redirect facility when I request to GET a file from a server.  The server will return with a new 'Location' and I can see the redirect handler being called but the uri isn't actioned.  e.g.;
 
-> GET http://foobar1.somewhere.com/myfile.wav
<- 302 http://foobar2.somewhere.com/myfile.wav
 
In soup-session.c redirect_handler is called and the new uri extracted and soup_message_set_uri followed by soup_session_requeue_message called.  The result is nothing happens.
 
If I resolve the domain name to and IP address and replace the domain name in the new uri it works.  Is there something I am missing in the automated redirect handling of libsoup ?
 
I am using libsoup-2.26.3 and I have tried libsoup-2.29.91 and libsoup-2.4.1 all with the same result.
 
Thanks in advance
 
Marc.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]