WebClient UploadValues POST - what is the new location? RRS feed

  • Question

  • I am using WebClient’s UploadValues to POST a request to a web page. This POST request moves me to a new web page. I need to know the name of the new web page.

    I used Fiddler and I notice there is a Response Header telling the new location.  Is the any way I can get that information?  The response from UploadValues gives me the content of the new web page only, not the location.

    The Fiddler response heading:
    HTTP/1.1 302 Found
    Cache-Control: private
    Content-Type: text/html; charset=utf-8
    Location: /extranet/Default.aspx
    Server: Microsoft-IIS/7.0
    X-AspNet-Version: 4.0.30319
    X-Powered-By: ASP.NET
    Date: Fri, 14 Sep 2012 12:33:48 GMT
    Content-Length: 139

    <html><head><title>Object moved</title></head><body>
    <h2>Object moved to <a href="/store/Default.aspx">here</a>.</h2>

    The “/store/Default.aspx” is what I am looking for. 

    Please help me!!


    Terje Myklebust

    Friday, September 14, 2012 1:36 PM

All replies