I have been trying unsuccessfully to set a HTTP break in my Flex 3 project. Obviously, I am totally clueless about programming and I don't have many references. When I try to export the project I receive parse errors for the result handler and var fault string. I am attaching a code snippet of where I have been placing the break.
<mx...
I'm building a WCF service based on a W3C specification which defines a RESTful web service endpoint that accepts "application/x-www-form-urlencoded" post data. WCF doesn't support this type of message encoding by default and I have found a number of different examples of creating a contract that looks like this:
XElement Query_Post(St...
I want to write some code to handle exceptions when HTTP connection fails. I use the following codes:
-(void) connection:(NSURLConnection *)connection
didFailWithError: (NSError *)error {
UIAlertView *errorAlert = [[UIAlertView alloc]
initWithTitle: [error localizedDescription]
message: [error localizedFailureReaso...
I try to add a method to handle exception, but the program just crashes instead of pop up an AlertView.
1) I set up the connection:
-(void)connect:(NSString *)strURL
{
NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:strURL]
cachePolicy:NSURLRequestUseProtocolCachePolicy
...
I'm working on an application that makes a lot of HTTP "Web Services" requests, some of which can be rather large XML files. Right now the HTTP request is made on a second thread, so the GUI/Form is not locked up. But it is still unable to give the user feedback as to the progress of the request.
I've been using the HTTPWebRequest clas...
I am having a problem using Indy HTTP (in Delphi) with the Google Contacts API.
Please refer to the section "ClientLogin Response" on the following page:
http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html
The server returns a 403 when the authentication is incorrect or an error occurs... as expected. However, accordi...
We are investigating the use of HTTP Compression on an application being served up by JBoss. After making the setting change in the Tomcat SAR, we are seeing a compression of about 80% - this is obviously great, however I want to be cautious... before implementing this system wide, has anyone out there encountered issues using HTTP Compr...
I have a WCF service that calls, through a BL, a Data Layer and ultimately SQL Server back-end. My service exposes various methods/operations to get data out of the database. I have also built a host for it for testing, and a Windows Service Host, which is how I plan to deploy it.
Yesterday when I did a test-deploy, the service starte...
How do you login to a webpage and retrieve its content in C#?
...
I'm designing an API to go over HTTP and I am wondering if using the HTTP POST command, but with URL query parameters only and no request body, is a good way to go.
Considerations:
"Good Web design" requires non-idempotent actions to be sent via POST. This is a non-idempotent action.
It is easier to develop and debug this app when the...
Are urls of the form http://asdf.com/something.do?param1=true?param2=false valid?
I don't think the second ? is allowed in valid urls and that it should instead be an ampersand (&), but I'm unable to find anything about this in the http 1.1 rfc. Any ideas?
...
When do you initially get assigned your unique http cookies when visiting a website?
I'm asking this in the sense of when creating a gui auth login from a website. Do you get your cookies the moment you visit the website? If so, if you don't visit the website by homepage and go straight to the http://website.com/login.php form, do you i...
In Java, this code throws an exception when the HTTP result is 404 range:
URL url = new URL("http://stackoverflow.com/asdf404notfound");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.getInputStream(); // throws!
In my case, I happen to know that the content is 404, but I'd still like to read the body of the r...
Hi,
My IIS is configured to use WindowsAuthentication.
When I surf to the file:
I can see the file perfectly but when i'm checking with charles (http debugger) I see the following result.
The problem is that when a browser does this, it will retry (apperantly up to 3 times) but when .NET (spring.net) tries this, it's crashes after ...
I am trying to determine if there is a way to check the availability of a potentially large list of urls (> 1000000) without having to send a GET request to every single one.
Is it safe to assume that if http://www.example.com is inaccessible (as in unable to connect to server or the DNS request for the domain fails), or I get a 4XX or ...
I'm using something like this in my template
<select multiple="multiple" name="services" id="services" size="5">
{% for service in services %}
<option value="{{service.id}}">{{service}}</option>
{% endfor %}
</select>
When I view the POST data in Firebug or the Django debug, I see it only sends one value. Am I doing som...
I'm trying to test out modes of failure for software that interacts with a web service, and I've already had reported issues where problems occur if the software doesn't get a timely response (e.g., it's waiting a minute or longer). I'd like to simulate this so that I can track down and fix issues myself, but unplugging the network conne...
The latest StackOverflow podcast has piqued my interest in the differences between HTTP 1.0 and HTTP 1.1.
Can anyone provide a simple list of the major differences between the HTTP 1.0 and HTTP 1.1 specifications?
...
RFC2616, 503 Service Unavailable
The server is currently unable to handle the request due to a temporary overloading or maintenance of the server
How to configure Apache 2.2 to serve particular name based virtualhost 503 code with custom HTML page?
...
My research shows that only the Host, Referer, and User-Agent headers can be spoofed.
(source http://download2.rapid7.com/r7-0026/ )
Is this a correct assumption to make? The security of a site I am building may require that "x-requested-with" cannot be faked. This is far from ideal but may be the only avenue I have.
...