I just added the following change to my code:
HttpWebRequest request = WebRequest.Create("https://bayden.com/sandbox/") as HttpWebRequest;
request.Method = "GET";
And get a valid response:
<html>
<head>
<script src="sample.js"></script>
</head>
<body>
<h1>HTTP Sandbox</h1>
<p>Welcome to the HTTP Sandbox. This page allows you to manipulate HTTP
requests and responses without fear of damaging live data.</p>
<p>These pages are designed to be very simple to allow you to concentrate on the
task at hand.</p>
<p>You can get to the HTTPS version of this page at
<a href="https://bayden.com/sandbox/">https://bayden.com/sandbox/</a> </p>
<h2> </h2>
<h2>Sandboxes</h2>
<ul>
<li><a href="shop/">Shopping cart example</a></li>
<li><a href="status.asp">
Response Status Code Generator</a></li>
<li><a href="FormAndCookie.asp">Upload form, and cookie tester</a></li>
<li><a href="FileForm.asp">Forms</a></li>
<li><a href="scriptpage.asp">Script Page</a><br>
</li>
</ul>
<p> </p>
<p> </p>
<p> </p>
</body>
</html>
My problem has to do with validation. can any one show me how to send a get with validation
username and password?