http

Does using gzip encoding make sense for communications within same server?

I have an xml feed supplied by one system which is used by another system and both of them (at the moment at least) are located on the same physical server. In this case would using gzip to encode (large) xml responses slow things down or speed it up, or maybe wont make any difference. ...

HTTP Request Corruption

On a site that receives a very high amount of traffic some small percent of requests come like this: http://cheezburger.com/ScriptResource.axd?d=zaVpgH63ePt90pn&lt;/a&gt; <br /> <br /> <p> <a id= On the page refer...

Launching an application with an URL

I want to access a desktop application and launch it on navigating to a 'http' URL. How can i achieve this? Here's what i have found so far - iTunes (i want almost the same functionality with my application) registers a handler for 'itms' and does a javascript call to this 'itms://' URL when the http URL is invoked. I have tried this ou...

http redirect: 301 vs. 302 (temporary vs. permanent)

Is the client supposed to behave differently? How? ...

http POST with asp.net

I've an annoying ASP.NET problem: I have a Perl script (see below), which gets the form_info variable. Now unfortunately, it's http POST, and not http GET, so Request.Querystring doesn't work... Now I have to replace the Perl Script with an asp.net page/app, but my problem is that I cannot process the string form_info when I don't have...

Multiple complete HTTP requests stuck in TCP CLOSE_WAIT state

I have a Java and Tomcat-based server application which initiates many outbound HTTP requests to other web sites. We use Jakarta's HTTP Core/Client libraries, very latest versions. The server locks up at some point since all its worker threads are stuck trying to close completed HTTP connections. Using 'lsof' reveals a bunch of sockets ...

Unable to View Source of an XML file using IE7

I am enhancing our web framework to use web services and one of features I would like is the ability to view XML that has been submitted. I am using our Java servlet to launch a popup and serve the XML and this works - in IE7 I get the expected behaviour when of a nicely formatted and folding view of the XML. The problem is if I select '...

Google Maps directions text format

Ive noticed that sometimes gmaps directions display a turn like this: Turn right at Gallardo and sometimes like this: Take the 1st left onto Arregui I need to always see the 1st,2nd,.. like in the second example. Is there a way to receive directions in this format always?. Thanks. ...

http request ... cookies

A site A (say url : www.a.com) is composed of different editions : each day a new edition. However, the site is not restful: the site is using cookies (I think) to save the edition the user wants onto access. So to access an article of a given edition, we have to first submit a form to specify the edition, and then get the articles of ...

loopedSlider jQuery plugin problem

Hi i use loopedSlider link text and there is html source. <div id="loopedSlider"> <div class="container"> <div class="slides"> <div><img src="01.jpg" alt="" /></div> <div><img src="02.jpg" alt="" /></div> <div><img src="03.jpg" alt="" /></div> <div><img src="04.jpg" alt="" /></div> </div></div><a href="#" class="previous">previo...

How can my website delete another site's cookies?

I'd like to remove the cookies of another site from users on my site. Is there any way to access the cookies from different domains. ...

Easiest way to grab filesize of remote file in PHP?

I was thinking of doing a head request with cURL, was wondering if this is the way to go? ...

HTTP: How should I show Content-Type and Content-Disposition when the client requests a byte range?

Yesterday I asked about serving byte ranges from PHP. Today my question is - how should I set Content-Type and Content-Disposition headers when serving several requested byte ranges? Should I repeat them for every byte range or should I just output them once at the beginning? Or maybe I shouldn't output them at all because the client sho...

Cross-platform open-source asychronous HTTP and DB with C#

Does anyone know of a good resource for open-source libraries for asynchronous C# (or native stuff to the language). I'm interested in anything on this topic, but I'm specifically looking for stuff pertaining to HTTP and DB calls. Maybe an event-driven framework with plugs for HTTP and DB? Please do not buzz in with a non-C# solution or...

Web server that does not allow PUT and DELETE?

I am trying to implement a REST protocol and have realized in trying to debug that my webserver is disallowing the PUT request. I have tested and confirmed this further by running: curl -X PUT http://www.mywebserver.com/testpage which for my web server gives back a 403 - Forbidden error The same happens for DELETE, where as for POST ...

How can I get PHP do display the headers it recieved from a browser?

are they all stored in $_server? even custom ones? ...

How Gmail makes IE Back work without refresh?

Gmail uses # when you click on a mail to distinguish the page (+ Ajax action). http://mail.google.com/mail/#inbox/1238e709e37a1394 I found: http://stackoverflow.com/questions/1122523/google-using-instead-of-search-in-url-why In FF or Chrome you can use Forward and Back without refresh between those urls: http://X.com/MyPage.aspx#1 http...

Is there a generally available HTTPS POST smoke test?

When debugging an HTTP client, one of your first tests is likely to be a Google search, which lets you see whether your client does non-SSL GETs properly. Everyone knows where it is, everyone can use it, and everyone can see whether it succeeded. My client has a problem with HTTPS POST. I can reproduce it locally with my specially set...

Is there a Java method that encodes a collection of parameters as a URL query component?

Is there a widely-used Java library that does something like what dojo.objectToQuery() does? E.g. (assuming the use of HttpCore's HttpParams object, but any key-value mapping will do): HttpParams params = new BasicHttpParams() .setParameter("foo", "bar") .setParameter("thud", "grunt"); UnknownLibrary.toQueryString(params); sho...

Encoding "<" and ">" while sending XML via HTTP Post

Hi, I am sending an XML content via HTTP Post from Access VBA to Web Methods, using XMLHTTP object in MSXML. Here is the Code. Dim objXmlHttp As Object Set objXmlHttp = CreateObject("MSXML2.ServerXMLHTTP") objXmlHttp.Open "POST", webServicePath, False objXmlHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" Dim...