A lot of times when reading about web developping on the internet I hear that you should split up your javascript and css files into multiple files.
Like split up your css files in a:
clear.css
base.css
page_specific.css
Or that you should even split those up into files containing positioning, colour and typography information.
But ...
I am trying to measure the throughput of a webservice.
In order to do that, I have written a small tool that continuously sends requests and reads responses from a number of thread.
The contents of the inner loop of each thread looks like this:
public void PerformRequest()
{
WebRequest webRequest = WebRequest.Create(_uri);
webReq...
Hi all,
I am developing a C# application that does this (by the way, this is also my first C# app.):
gets login information from the user (id, pass),
opens a new HttpWebRequest connection to a ASP.NET web page
tries to login to this page with the obtained [id,pass] tuple. If login is successful, my HttpWebRequest object contains a c...
I can't seem to get my head around this one. I'm using HttpWebRequest to try and send some data out to another site. I'm attempting to figure out the best way to get our firewalls configured, but I'm at a loss. By watching the NetMon trace, it appears as though it's ignoring what I tell it; the HTTP headers I see go out from the request ...
I'm currently trying to modify some HttpWebRequest functions, but I can't do it through inheritance because HttpWebRequest has no public constructors (besides the deserialization constructor). Is there a workaround to do this?
My objective is to code something like the example below, but this class objects must inherit the HttpWebReques...
I notice that when http requests are made from clients through a proxy server, then the IP address of the requests is always that of the proxy. So if many clients from a huge corporation with a proxy server access a web site, I cannot tell if the requests are from unique clients or not. Is there any way to determine uniqueness of clien...
My objective is to retry an asynchronous HttpWebRequest when it fails.
When I Abort() an HttpWebRequest, I cannot BeginGetResponse() again. So the only way to request again probably is recreate the HttpWebRequest object. It seems to require a lot of work since I would have to copy all properties from the old object. Is there any shortcu...
I have a small tool I use for testing a webservice.
It can either call the webservice using POST or using GET.
The code for using POST is
public void PerformRequest()
{
WebRequest webRequest = WebRequest.Create(_uri);
webRequest.ContentType = "application/ocsp-request";
webRequest.Method = "POST";
webRequest.Credentials = _cr...
I need to execute a http web request from Plesk's Task Scheduler (using shared hosting on Windows/ASP.NET; no Powershell, whatsoever). Thought about using a batch file for this.
Is there an easy way to do this?
...
Hi,
is it possible to clear the pool of the current processes' UnsafeAuthenticatedConnectionSharing pool, i.e. close all authenticated pooled connections?
...
I'm sure I must be doing something wrong. But can't for the life of me figure out what is going on.
I have a problem where it seems that the HttpWebRequest class in the framework is not correctly parsing the cookies from a web response.
I'm using Fiddler to see what is going on and after making a request, the headers of the response lo...
Hi,
i hav developed an addin for outlook using c#. i want 2 read a selected email from outlook and post it to a forum using the url. In the following code i m doing the required task but in response string i m getting "isSuccess" as false.
And in server (to which i send a request) i m receiving request with sessionUid : 0 but i m passing...
This question is somewhat related to What’s the simplest way to make a HTTP GET request in Perl?.
Before making the request via LWP::Simple I have a hash of query string components that I need to serialize/escape. What's the best way to encode the query string? It should take into account spaces and all the characters that need to be es...
In an ASP.Net application, I need to send some data (urlEncodedUserInput) via http POST to an external server in response to user input, without holding up the page response. It doesn't matter what the response from the other server is, and I don't care if the request fails sometimes. This seems to be operating fine (see below) but I'm c...
How can I login to the this page http://www.bhmobile.ba/portal/index by using HttpWebRequest?
Login button is "Pošalji" (upper left corner).
HTML source of login page:
<table id="maintable" border="0" cellspacing="0" cellpadding="0" style="height:100%; width:100%">
<tr>
<td width="367" style="vertical-align:top;padding:3px"><sc...
I'm trying to make an SSL call using HTTPWebRequest and its continually failing saying it can't establish trust. I've added a callback to ServicePointManager.ServerCertificateValidationCallback and returning true always works. However, I'd like things to be a little more secure than that. Looking at the SslPolicyErrors in the validati...
Hi, I know this is a vague question, especially since I am not providing any code, but I am developing a .Net 2.0 application, and we have a WebRequest which posts data to an internally built API.
The strange thing happens on our 3rd (and always the 3rd) subsequent request which fails at the GetRequestStream() method of the request. Th...
I have an HttpWebRequest that I've set the CachePolicy to CacheIfAvailable, and I've set AllowAutoRedirect to false.
Now when there is a cache hit, the HttpWebResponse.Status == NotModified, and there is no response stream. I need to know what the cached response is!
If I set the CachePolicy to BypassCache it works just fine. But I ne...
Im trying to write to a form from an asynchronous call. The examples I seen on line show that this should work but I keep getting an error.
First the call that is made though the Disbatcher never calls p. Second i get a System.Security.SecurityException on the call req.EndGetResponse(a);
What could be causing the problem?
public parti...
My application makes multiple HttpWebRequests to a REST webservice sometimes as many as 50 for a single page. I have started intermittently getting the following WebException, which occurs on random endpoints
The underlying connection was closed:
An unexpected error occured on a
receive
The application is on IIS6, Windows Serve...