I'm using the [WebGet] attribute to query a REST API on a web server. Every so often (because the API is still under development) I get back an HTML document in the form of an HTTP/500 error instead of the XML I want.
Here's an example of my operation contract:
[WebGet(UriTemplate = "search/?api_key={key}&query={query}",
BodyStyle =...
I would like to send a html string with a GET request like this with Apaches HttpClient:
http://sample.com/?html=<html><head>...
This doesnt work at the moment, i think its an encoding problem. Do you have any ideas how to do that?
method.setQueryString(new NameValuePair[] {new NameValuePair("report", "<html>....")});
cli...
I'm working on a .NET project that integrates with an external company. This company will be sending us XML messages via HTTP POST (raw XML, not SOAP). There are basically three different types of XML messages they will be sending us, which all have their own XSDs. There is no inheritance hierarchy between these XSDs, they are all bas...
It's appears ONLY javascript and css are not caching ... but images are caching.
I am using Firebug and when I refresh the page, I notice in Firebug a lot of 200 HTTP responses for js/css but am receiving 304 HTTP codes (content not modified) for all of my images. So it appears that my JS and CSS are not caching.
Also, when using YSlow...
Assuming a single page application accessed initially via HTTP that uses AJAX for all server interaction, is it possible to use HTTP for regular data transfers and then switch to AJAXian HTTPS requests for secure data transfers?
If so, how would the browser handle the certificate and locking notification when a HTTPS AJAX request was ...
Hey guys,
I'm trying to read POST data in a PHP script.
My first instincts led me to the $_POST[] array, but for whatever reason, it's never populated.
I'm using HTTP Client for OS X, http://ditchnet.org/httpclient/ to send POST requests.
I enter the URL of the script, set the method to POST, set the content-type header to text/plain ...
I'm editing some existing html where the javascript loads a another page inside an iframe. In the page is an html form. When I hit submit, I'd like for the outer page to stay and the iframe to change to the results page. However, right now the whole page changes to the results page for the form. I'm guessing there's a way to solve this j...
I understand that the default encoding of an HTTP Request is ISO 8859-1.
Am I able to use Unicode to decode an HTTP request given as a byte array?
If not, how would I decode such a request in C#?
EDIT: I'm developing a server, not a client.
...
What is the Server HTTP response header useful for? I have yet to actually see a use for it. Why would someone that's requesting a webpage need to know what server a webpage is hosted on?
...
Hello!
I've just started development on Macs and have found Cocoa to be a useful and thoughtful framework, but its HTTP functionality has me puzzled.
I have an NSURLConnection object to download a file from my webserver using the HTTP GET method. NSURLConnect's asynchronous connection is great, I get plenty of feedback, I get each chun...
I'm developing a simple RESTful API, and utterly in love with how minimalistic it is. But I'm uncertain as to the correct HTTP response codes for various situations:
Incorrectly formed query
Correctly formed query refers to a resource which does not exist
Resource successfully deleted
Resource successfully edited
I'm currently thinki...
Is it possible to send "100 Continue" HTTP status code, and then later some other status code after processing entire request using Java Servlet API (HttpServletResponse)?
I can't find any definitive "No" answer, although API doesn't seem to support it.
...
What is the JavaScript equivalent of C# Server.URLEncode?
...
I am writing a very simple web service for my iPhone app. Let's say this is a http page that returns a random number at http://mysite/getRand. How do I ensure that this page can only be accessed from my iPhone app and not from other clients? I've thought of doing some simple password mechanism but that can easily be sniffed by capturing ...
I began reading about Auto-loading a google map at:
http://code.google.com/apis/ajax/documentation/#AutoLoading
What's unclear to me is how to actually load the google map.
I have tried:
<script src="http://www.google.com/jsapi?autoload=%7B%22modules%22%3A
%5B%7B%22name%22%3A%22search%22%2C%22version%22%3A%221.0%22%2C
%22language%22%...
Goal: To have a button in the Outlook toolbar which, when pressed, sends the current message in it's entirety (perhaps as a .msg file) via post to a URL. Some kind of browser window must be opened in the process so the user can enter login details for the application at the URL (unless I can get around this somehow, thoughts?).
I have c...
Situation: a user clicks on a link, the server gets the request and starts processing it. In the meanwhile, the user clicks on another link, the server gets the new request while processing the 1st one. What happens? On the client side we only see the webpage from the 2nd request, but is the process from the 1st request killed on the ser...
So, I want to put the past year or so of Tomcat Combined Format files into a database. There are zillions and zillions of hits.
(The plan is to run bespoke and ad hoc queries against it, and match up with some other data. We have some questions that existing log analysis products out there cannot answer for us.)
What I am looking for...
NSURLConnection by default performs a GET request with HTTP v1.1.
How do I get it to perform a GET request with HTTP v1.0?
Or is there a HTTP header I can set that will do this for me?
...
Hello,
The task: Serve the files located in a local folder on the server to clients over http/80.
In the end, I plan to emulate the folder on the client but that doesn't concern my question.
So, there is an existing Rails app (rest based/xml) on that server that the clients would use in conjunction with these files.
I don't need any l...