I'm curious to know if, after a WebSocket has been established (after having received the proper handshake from a server that supports them), whether or not the TCP socket used by the "WebSocket connection" is used exclusively by the WebSocket, or if the browser may still make regular HTTP requests with it.
It only makes sense to me t...
I am new to Three20 and have been trying to develop an iPhone app with Three20 for the past week. This app has to access to a xmlrpc server.
I know it is possible to receive responses in other formats like JSON.
But for requests, instead of the provided HTTP class TTURLRequest, is it possible to send request by XML-RPC?
...
When I send/receive data using HttpWebRequest (on Silverlight) in small blocks, I measure the very small throughput of 500 bytes/s over a "localhost" connection. When sending the data in large blocks, I get 2 MB/s, which is some 5000 times faster.
Does anyone know what could cause this incredibly big overhead?
Additional info:
I'm...
I have a problem with the Jakarta Commons HttpClient. Before my self-written HttpServer gets the real request there is one request which is completely empty. That's the first problem. The first problem is solved. It was caused by an unnecessary URLConnection! The second problem is, sometimes the request data ends after the third or fourt...
At the moment I'm trying to build some integration tests for an android project. I would like to use the same apache http classes I use on the android. Which version is this and can I get a jar of that somewhere?
Trying to use the jar that comes with android only resolves in Exceptions... But most of the tests won't need running them i...
I'm trying to authenticate to a web server from an android class with the org.apache.http.HttpClient.
How can I do this? The code for my connection is:
HttpClient httpClient = new DefaultHttpClient();
HttpGet httpGet = new HttpGet("url");
HttpResponse response = null;
try {
response = httpClient.execute(httpGet);
} catch (Client...
What are your experiences on using If-Match to implement an optimistic locking scheme on a web service?
To simplify things, let's say we're building a simple CMS, consisting solely on "pages", each having just a body. If two users begin editing the same page simultaneously, then only the changes made by the user who were last to save ar...
How to do it?
I don't want to use this:
HttpContext.Current.Server.MapPath
Is there a similar function that I can call without requiring a httpcontext?
For example if a start a thread doing some stuff i cant use the httpcontext, but i still need to get the path of the app. And no i can't pass the context as an argument or read it fr...
I'm trying to understand the performance numbers I'm getting and how to determine the optimal number of threads.
See the bottom of this post for my results
I wrote an experimental multi-threaded web client in perl which downloads a page, grabs the source for each image tag and downloads the image - discarding the data.
It uses a non...
Hi All,
I may be asking a bit much here but I have faith in the community so it's worth trying. I'm making a game and I'm trying to pick the connection type to use for communicating between a Java mobile client and a Java server backend.
Socket programing in Java is easy - there's a lovely tutorial on the subject and two way communicat...
this is part of my code which reads an http response. It's supposed to increase the buffer size if it runs out of room. But i keep getting access violations. It happens when copying the data to the new buffer: memcpy(tmp_alloc, rec, ResponseLength); Any help/suggestions are appreciated.
#define SERVER_CHUNK 1024
char *rec = new char[10...
I'm writing some code that parses HTTP requests and responses, but it may not see both sides of every conversation.
The HTTP RFC states that a HEAD request should cause exactly the same response as GET except that a message body is not sent. This seems to imply that a Content-Length header would be included.
If HTTP Pipelining is being...
I have a Pylons controller action that needs to return a file to the client. (The file is outside the web root, so I can't just link directly to it.) The simplest way is, of course, this:
with open(filepath, 'rb') as f:
response.write(f.read())
That works, but it's obviously inefficient for large files. What's the best way...
I'm developing with GAE on my own machine. It was pretty fast, until I added CSS and images, at which point the page loads much more slowly. I suspect that the browser isn't caching anything, perhaps because GAE isn't setting any far-future expiration headers in the HTTP request. Is there anything I can do to get around this?
I tried th...
Hello,
I have a login system, and while logged in, if I refresh the browser, Chrome shows a pop up window titled "Confirm Form Resubmission." I assume that the same thing would happen with other browsers.
How can I allow the browser to be refreshed without this confirmation pop-up window? Of course, I would also like to stay logged i...
I am working on a Http Connections.
I have a login form. When the enter a username and password. That values will be processed with the server and the user should be logged in.
Then it shows an users home page in a webview. How to do it?
...
Hi,
I am using a traditional C# web service client generated in VS2008 .Net 3.5, inheriting from SoapHttpClientProtocol. This is connecting to a remote web service written in Java.
All configuration is done in code during client initialization, and can be seen below:
ServicePointManager.Expect100Continue = false;
Servi...
I am using Jboss 4.2.3 as an appserver. Is there a way to limit the size of the HTTP Post request accepted by JBoss? I want to limit the size to avoid DOS attacks.
I already sat maxHttpHeaderSize and maxPostSize in the server.xml, but neither of them seem to make any difference.
...
Given a repository served over HTTP whose owner forgot to chmod +x hooks/post-update, is there a workaround for cloning it?
I tried running wget --mirror url, but rather than fetching the subtree only, it tried to mirror the entire site—which I assume happened due to the parent-directory links in the autogenerated index.html resources.
...
I've seen many code fragments that base64 encode images before transmitting over HTTP protocol.
I am wondering why do we need it?
...