Retrieve WEb Content

Hi All,
I m currently trying on retrieve web content from a given URL.
However, when i go to this url, on its form_load, it will retrieve data from database and populate it as a table.

How can I retrieve this content using HttpWebRequest
As I 've been trying, but it skip the table that suppose to populate at runtime.


REgaRds,
silkkeng


Answer this question

Retrieve WEb Content

  • GaryKnowles

    Ya, but the problem is, when i use httpwebrequest to get it.
    it only return with me the condition before the table was drawn.

    for example, if we have a button and 2 text box on the original url. and during form load, a table with a list of users is draw at the bottom of the form.

    in this case, how can we retrieve that table
    when i try, it only return me the button and 2 text box, table wasnt been return to me.

    so i would assume httpwebrequest run first b4 table is query.


    regards
    silkkeng
    thanks for your help !

  • Michael Koster

    Sure... I'll do that right away because I've seen a lot of this, this week.

    and I've done a lot of HTTPwebRequest and and parsing.

    You have to remember the sometimes the server is doing the work and sometimes the browser is doing and you have to sort out whose doing what. Very often because of the way the browser corresponds, it sees very different thing than httpwebrequest will.

    I'll come up on msn. :)

    renee

  • codelinezero

    Is the table fixed length I suppose not if it's a list of user which may vary.

    I've doing a little of this lately.

    If you look at the Html and can identitfy "a signature" anything unique and consistent in the html stream you can read the stream, look for that and once you find it, drop it on the floor and begin parsing for the data you are looking for.

    Is there enough consistency in the html to that. Doesn't a table usually end with </td> This sounds like an adventure in parsing and that's about all. What am I missing

    Can you look for that

  • kevin_estccst

    Could you say more about this

    Does the data you are interested in come after the table

  • Dave Hulpiau

    okay.
    There is an URL. on load, it will query a table and retrieve list of user according to the session ID.
    and display on the web pages.
    How can I detect that table
    I want to get the data in that table. since I can't connect to that remote database.(that database doesnt belongs to me, nor the web space)
    but since it can display a list of data for me, I just want to get that data into my screen.

  • Retrieve WEb Content