http

CSS browser cache issue, Is img would have same issue

There is known css cache issue when you change your css, browser is not going to realize it unless time expires and everyone seems to be using querystring like ?version=29347 to update css when it changes on server. But does img has the same issue? When img changes on server, is browser detects it? or do i need similar implementation fo...

Obfuscating server headers

Hi, I have a WSGI application running in PythonPaste. I've noticed that the default 'Server' header leaks a fair amount of information ("Server: PasteWSGIServer/0.5 Python/2.6"). My knee jerk reaction is to change it...but I'm curious what others think. Is there any utility in the server header, or benefit in removing it? Should I f...

How can I make an HTTP GET request from Perl?

Hello. I'm trying to write my first Perl program. If you think that Perl is a bad language for the task at hand tell me what language would solve it better. The program tests connectivity between given machine and remote Apache server. At first program requests the directory listing from the Apache server, than it parses the list and do...

Multipart Downloading in C#?

Please excuse my ignorance on the subject. I would like to write an application in C# that can download files off a server the same way DownThemAll does. DownThemAll seems to open four connections to the HTTP server to download the same file. I was just wondering if there are any existing libraries that might do this. Here is a quote f...

non-blocking read/log from an http stream

I have a client that connects to an HTTP stream and logs the text data it consumes. I send the streaming server an HTTP GET request... The server replies and continuously publishes data... It will either publish text or send a ping (text) message regularly... and will never close the connection. I need to read and log the data it c...

Do I need PHP to serve an HTTP Header with the correct content-type for RSS/ATOM?

I want to send my RSS/Atom feeds with the correct Content-type header, can I do this without access to PHP or any other server-side language? The goal is for the browser to treat the file as a feed and not just a plain XML file. ...

Why would you not use https on your public facing website?

Why would you not use https on your public facing website? For SEO purposes? For performance reasons? Why don't more companies use https on their public facing site. Even the founder of mint.com mentions not using https on his public facing site" http://cnettv.cnet.com/rr03-mint-ceo-aaron-patzer/9742-1%5F53-50076867.html 19min into the...

Getting HTTP xml error response using cURL

Hi I am currently using cURL to communicate to a cloud site... everything is going well except for an annoying issue. The issue is that I cannot get the site's xml response when there is an error. for example, when I use Wire Shark to check the transfer I can see that in the HTTP header that I'm getting which contains the error code; th...

URL Shortening that Leaves the Shortened URL in the Address Bar

I'm building an internal URL shortening website for my company. Since so few people will use it, we're letting people choose their own custom shortened URLs. So, for example, you could have the shortened URL: http://goto/toms-projects We thought it would be cool to offer, in addition to a regular redirect, the ability to leave the ...

404 response header using struts forward

Is it possible to set the http response header with a status of 404 instead of 200 when using struts forwards? We have a generic error page that goes out with a status of 200OK. We want to update the header to show a 404 instead. Is that possible? ...

HTTP As Communication Layer for a Game

I've just started dabbling in some game development and wanted to create a simple multiplayer game. Is it feasible to use HTTP as the primary communication protocol for a multiplayer Game. My game will not be making several requests a second but rather a a request every few seconds. The client will be a mobile device. The reason I'm ask...

Bad Request 400 error when trying to do a HTTP POST

I have written a WCF REST Service as follows namespace UserService { // TODO: Modify the service behavior settings (instancing, concurrency etc) based on the service's requirements. Use ConcurrencyMode.Multiple if your service implementation // is thread-safe. // TODO: Please set IncludeExceptionDetailInFaults to false...

What is the easiest way in pure Perl to stream from another HTTP resource?

What is the easiest way (without opening a shell to curl and reading from stdin) in Perl to stream from another HTTP resource? I'm assuming here that the HTTP resource I'm reading from is a potentially infinite stream (or just really, really long) ...

Can I web-serve a document from one place and its content-type from another?

Hi, I am trying to write a web application that will serve uploaded files, and let the uploader specify the content type. For this to work, I need to be able to control the content-type when I serve the file. With most web-servers I'm aware of (e.g. Apache), the best I can do in that respect is set an appropriate suffix and hope that no...

Android: HTTP communication should use "Accept-Encoding: gzip"

I've a HTTP communication to a webserver requesting JSON data. I'd like compress this data stream with Content-Encoding: gzip. Is there a way I can set Accept-Encoding: gzip in my HttpClient? The search for gzip in the Android References doesn't show up anything related to HTTP, as you can see here. ...

Generic Http Module

The problem I am trying to make a generic http module in asp.net C# for handling roles defined by an enum which i want to be able to change by a generic parameter. This will make it possible to use the generic module with any kind of enum defined for each project. The module hooks into the Authenticate event of the FormsAuthenticationM...

Reading the .htaccess DirectoryIndex and Rewrites with PHP

Is there an inbuilt way to read the active DirectoryIndex in .htaccess (or httpd.conf etc) with php? Also, is there a way to determine which file the httpd will execute using PHP given a url if rewrites are being used? Basically, given a URL, I want to use PHP to figure out which file the httpd would initially invoke. Thank you. ...

HTTP Version problem POSTing XML messages to a server

I have a DLL library, which I have no control over, that builds a XML message and sends it over HTTP to a web server. Due to the strict specifications, the server will only accept message with POST HTTP/1.1. However, the logs in the server shows receiving messages being POSTed HTTP/1.0. If I open the URL directly into a browser, the l...

Buffered Reader HTTP POST

Hello, Looking for a bit of help, I have currently written a HTTP server. It currently handles GET requests fine. However, whilst using POST the buffered reader seems to hang. When the request is stopped the rest of the input stream is read via the buffered reader. I have found a few things on google. I have tried changing the CRLF and ...

http client blocks on recv()

Hi, I need some help writing an http client. The trouble comes when I try to receive data from a webserver. The recv() call blocks the program. Any better direction would be extremely helpful, I'll post my code below: if ( argc != 2 ) { cerr << "Usage: " << argv[0]; cerr << " <URI>" << endl; return 1; } else { uri_string = argv[1...