http

Queuing asynchronous HTTP file uploads

Is there a way to queue file uploads without resorting to Flash or Silverlight, just with cleverly used forms and JavaScript? Note that the upload should be executed asynchronously. By "queuing" uploads I mean that if the user tries to upload multiple files, they should not be transferred simultaneously, but rather one at a time, in a s...

Java: IOException on write in HttpServlet

I've written a proxy of sorts in Java (and Jetty). Anyway, it works great, but sometimes ... final OutputStream realOs = res.getOutputStream(); ... InputStream is = url.openStream(); int i; while ((i = is.read(buffer)) != -1) { realOs.write(buffer, 0, i); } fails with IOException. I've noticed that it mostly happens with large bina...

Long held AJAX connections being blocked by Anti-Virus

Ok, this is downright bizarre. I am building a web application that relies on long held HTTP connection using COMET, and using this to stream data from the server to the application. Now, the problem is that this does not seem to go well with some anti-virus programs. We are now on beta, and some users are facing problems with the appl...

HTTP Header Referrer Cheating using PHP

I need to make a false referrer to certain pages using PHP. In my http://www.a.com/header.php page I tried the following code header("Referer: http://www.b.com\n"); header("Location: http://www.c.com"); But this doesn't work, at least for Google Analysis. Can anyone tell me how to do it? ...

How do I get the URL of an HTTP redirect's target?

I am writing client-side Python unit tests to verify whether the HTTP 302 redirects on my Google App Engine site are pointing to the right pages. So far, I have been calling urllib2.urlopen(my_url).geturl(). However, I have encountered 2 issues: the URL returned by geturl() does not appear to include URL query strings like ?k1=v1&k2=v2...

Is there a HTTP cache suited for developing against API limited web services?

At some point I'm going to want to run my application against something like the real web service. The web service has an API call limit that I could see hitting. I considered serializing out some JSON files manually, but it seems like this would basically be caching the hard way. Is there a HTTP cache I could run on my local machine ...

GWT upgarde from 1.4 to 2.0

Hi, I have an application written in GWT 1.4 To upgrade it to 2.0 i have simply created a project in 2.0 with same naming convection as my original application and teamed up the code from VSS. While running the project my HTTP request are not getting responded. The mappings that i have put in web.xml too shows an error if i place more ...

RESTful httpclient for Ant

I need a RESTful httpclient for Ant. None of the contrib related tasks seem to work anymore.. Hasn't anyone bridged Commons-HTTPClient and Ant yet? ...

how to know if a packet sniffed is accessed from a website directly and not linked?

is there any way to know if a certain tcp segment which has a request message to a server is directly accessed by a user through a browser. not just that its linked by the browser itself to complete the requested page. like for example, a web page with images, when one browses this page, the sniffer tends to get all this urls including ...

android communicate with webpage, get 502 error

I have a friend who's written a servlet which just serves XML (just XML, no SOAP or etc., Content-Type: text/xml). Now I'm trying to access it using android. I can access the page fine if I surf to the page with firefox, but if I access it using my android application I get an HTTP 502 error. The code I'm using is: AlertDialog alertDi...

IE and Content-disposition inline vs. extension-token [unanswered]

This question, despite accepted-answer, was not answered. The reason it has an answer marked as accepted is because the bounty system, which I used, demands one. You are still welcome to answer this question if you know the answer (please do) - I will try to reputation-pay you in upvotes elsewhere. (Reputation purists may now throw rocks...

Downloading File with libcurl in c++

I am trying to download a zip file from a website but running into a few issues. http://ampaste.net/m1632f19a I implemented libcurl, followed some examples on downloading a file, used a big zip file so I could watch the progress %. It takes about 20 seconds to download, when it completes I go look and there is no file. Anyone have any...

http cookies and embedded images

I'm setting a cookie during http GET request of the .html pages with embedded images. I'm expecting the browser to return the cookies when getting all the embedded images, but apparently it does not happen for the first embedded image. Is this how it's supposed to work or am I missing something ? ...

HTTP stream server: threads?

I already wrote here about the http chat server I want to create: http://stackoverflow.com/questions/2352220/alternative-http-port This http server should stream text to every user in the same chat room on the website. The browser will stay connected and wait for further html code. (yes that works, the browser won't reject the connection...

How to represent HTTP GET/POST et. al. / webhooks in simpler string forms

I'm currently involved in the design phase of a HTTP-based API for a Messaging-type project. The system is primary composed of service-oriented loosely-coupled heterogeneous daemons talking to each other via HTTP. Each daemon handles HTTP requests and responds appropriately whether a submitted message was processed or not. At the same ...

IIS - wont serve an .ini file

Hi, I have a .ini file in the virtual directory of IIS. When i try to open the same in IE i get file not found HTTP 404 error. http://www.virtualdirectoryname/sample.ini Any inputs. Please suggest some solution. Thanks, Karthick ...

Does Meta Refresh work during page load?

Page A has a meta refresh to redirect to another page, C, after a certain amount of time (time T). From page A a link is clicked that takes a long time to load, longer than time T, and would eventually load another page; B. Will the meta refresh on page A cause the page to be re-directed to C, or will the processing of the link overri...

Set form submit header

Is there any way to set the HTTP header fields of a HTML form submit request? I need to make an authenticated request to a URL, so i need to set a header field. I can't use ajax because of cross-domain restrictions. ...

HTTP in Silverlight is slow when not running in the main thread

I have made a test project that makes HTTP POST requests in silverlight (using the HttpWebRequest and WebClient classes). I consistently get a performance of approximately 20 calls/s, which I think is very slow. The only data I send and receive are small strings (some 20 characters). What surprised me was that WCF (SOAP over HTTP) showed...

Understanding REST: is GET fundamentally incompatible with any "number of views" counter?

I'm trying to understand REST. Under REST a GET must not trigger something transactional on the server (this is a definition everybody agrees upon, it is fundamental to REST). So imagine you've got a website like stackoverflow.com (I say like so if I got the underlying details of SO wrong it doesn't change anything to my question), wher...