CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2009
    Posts
    12

    Question retriving xml from password protected site.

    hi,

    this is my requirement;
    1. i have to login to somesite which requires user authentication.
    2. then i have to give some unique id like transaction id or req id and press search.
    3. after getting result have to download the xml for the page and then compare it with predetermined values to check if the values are correct.

    what i have done;
    1. created and Internet explorer object
    2. got the field names using some DOM inspector but the place where i put IDs, the input field name changes sometimes, so DOM fails sometimes.

    now going by using IE object, its very cumbersome. it takes hell lot of time to find DOM value and then code it properly. If code errors the IE object is also not destroyed which then makes machine slow.
    Is there a better way to code??
    i was going thru execwb but couldnt figure it out.
    any help/comments are welcome
    TIA

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: retriving xml from password protected site.

    Nope. They probably don't want anyone automating searches. Lots of site won't let you even use SPEECH to TEXT programs, as it types words too fast. (50ms delay works at places)
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Mar 2009
    Posts
    12

    Re: retriving xml from password protected site.

    thanks dglienna.
    one more help please, can you tell me the name of freeware DOM inspector?

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: retriving xml from password protected site.

    Used to be built into Firefox, now optional https://addons.mozilla.org/en-US/fir...&cat=1%2C4

    Fiddler2 works with Internet Explorer
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    Join Date
    Mar 2009
    Posts
    12

    Thumbs up Re: retriving xml from password protected site.

    thanks dglienna for all the help.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured