HTTP POST Request with C Sharp Silverlight

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bmd1988
    New Member
    • Apr 2010
    • 1

    #1

    HTTP POST Request with C Sharp Silverlight

    I'm currently trying to grab data by using C Sharp with the Silverlight Framework. The request does not seem to go through though because I'm trying to pull data off a website that appears to use .NET and uses a postback to return the information.

    I'm using the following method to try and submit the request:
    Code:
    GlobalVariables.client.UploadStringAsync(new Uri(GlobalVariables.stopRequestUri), "__EVENTTARGET=&__EVENTARGUMENT=&txtSearch=springfield+and+busey&cmdSubmit=Search");
    stopRequestUri = http://stopwatch.cumtd .mobi/Default.aspx?__ ufps=841248 and client is of type WebClient

    When I've used Fiddler to check how the request is going through, it can execute the request just fine and appears to include some sort of redirect. I can't seem to get my own code to do the same thing.

    I'm pretty much trying to submit the form with something like Springfield and Busey and then have it bring up the bus stop times for that intersection just like it would appear in the web browser.

    Any ideas?
Working...