From marcmltd@marcm.co.uk Thu May 5 16:30:16 2011 Return-Path: X-Original-To: libsoup-list@gnome.org Delivered-To: libsoup-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D34827500D2 for ; Thu, 5 May 2011 16:30:16 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.984 X-Spam-Level: X-Spam-Status: No, score=0.984 tagged_above=-999 required=2 tests=[BAYES_40=-0.001, HK_RANDOM_ENVFROM=0.001, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001, RDNS_DYNAMIC=0.982] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5IzsbkUl8YwV for ; Thu, 5 May 2011 16:30:14 +0000 (UTC) X-Greylist: delayed 751 seconds by postgrey-1.32 at menubar.gnome.org; Thu, 05 May 2011 16:30:13 UTC Received: from marcm.co.uk (87-194-101-244.bethere.co.uk [87.194.101.244]) by menubar.gnome.org (Postfix) with ESMTP id E9C2F7500CE for ; Thu, 5 May 2011 16:30:05 +0000 (UTC) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CC0B3F.E8E92842" Subject: libsoup and http redirect request Date: Thu, 5 May 2011 17:16:57 +0100 Message-ID: <6F732ACED223C5478F0C244EF5D6BA3107C930@marcm-serv01.MARCM.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: libsoup and http redirect request thread-index: AcwLP9tXYs/44KemR3aG2D0tZBax+Q== From: "Marc Murphy" To: X-BeenThere: libsoup-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "discussion of libsoup, an HTTP library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2011 16:30:17 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01CC0B3F.E8E92842 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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.; =20 -> GET http://foobar1.somewhere.com/myfile.wav <- 302 http://foobar2.somewhere.com/myfile.wav =20 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. =20 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 ? =20 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. =20 Thanks in advance =20 Marc. ------_=_NextPart_001_01CC0B3F.E8E92842 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =0A= =0A= =0A= =0A=
=0A=
Hello = all,
=0A=
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.;
=0A=
 
=0A= =0A= =0A=
 
=0A=
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.
=0A=
 
=0A=
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 ?
=0A=
 
=0A=
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.
=0A=
 
=0A=
Thanks in advance
=0A=
 
=0A=
Marc.
------_=_NextPart_001_01CC0B3F.E8E92842--