Solved

c# HTTPWebRequest or HTTPRequest javascript problem

Posted on 2008-10-30
1
1,009 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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now