Solved

c# HTTPWebRequest or HTTPRequest javascript problem

Posted on 2008-10-30
1
1,015 Views
Last Modified: 2013-12-17
I am looking for a method in C# that allows me to read client side java script variables<b>or</b>
I cannot seam to get the values for client side javascript variables within a HTTPWebRequest
Suggestions that don't include using a client side browser such as WatiN or incisif.net
Thanks :)

Javascript notes:
When i look at the source code for different types of output on the same secure page.
The source code is identical. I cannot just parse the source code to determine what the javascript is trying to display. Clearly the web server is sending variables to the client some how. Is there a way to show all variables sent to the client via HTTPWebRequest?


Current situation:
The method also must be able to run in the background or scheduled.
C#/WatiN freezes or hangs when a Dialogue pops up for login/password while being run from a scheduled task.
Pumping client side javascript through a browser is not an option apparently.


0
Comment
Question by:darkxer878
1 Comment
 

Accepted Solution

by:
darkxer878 earned 0 total points
ID: 22842425
I have noticed that the javascript code has the following code.

var status = { url:"/status/data.html", req:0, t:0, cb:getData};

I'm guessing this is where the value for the variable is located, but when visiting that link i get the following error.




The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

The following tags were not closed: table, table. Error processing resource
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Question! 4 36
Firing an ASP.NET event on selection of a JQuery datepicker 4 20
Release Dynamically Allocated Memory in C# 3 28
MailAddress in vb 4 15
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question