[Mono-bugs] [Bug 417891] New: System.Net.HttpWebRequest redirection broken

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Aug 18 01:03:32 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=417891


           Summary: System.Net.HttpWebRequest redirection broken
           Product: Mono: Class Libraries
           Version: 2.0
          Platform: Other
        OS/Version: openSUSE 11.0
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: gburt at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


In the test program I will attach shortly, it should automatically redirect
(given a single 302 response) to end up downloading
http://www-tc.pbs.org/cringely/pulpit/media/pulpit_audio_20080815_005385.mp3,
but it fails with System.Net.WebException: Max. redirections exceeded.

If I wget the file, it redirects and downloads properly.

Looking at the HTTP GET requests using Wireshark, wget asks one IP
(www.pbs.org) for the original file/url, gets redirected, and asks a new IP
(www-tc.pbs.org) for the new URL.

I believe the bug is due to Mono failing to use the second IP - it sends out
the second GET with the IP address from the first GET, and so gets the original
302.

I have mono-core 2.0-1.1 etc from the Mono Preview repository for openSUSE
11.0.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list