http

saving just the deltas over a network/internet

Is there currently a filesystem agnostic way to have a file in two locations on a network, change one copy, and have just the changed bits (or more likely blocks) synced to the other copy? It would be awesome to have media files in the cloud, allow another service to read them and me to edit them with their web app, and then only have t...

Audio files reading, mixing and encoding.

I have an FCGI application that have to stream audio via HTTP. The audio is composed of 1 to 3 files mixed together. Everything is in plain C. I'd like to know what will be a good way or library to read the audio files by 1 second chunks, mix them and encode them as an HTTP friendly format. I need to read the files by chunks because I ...

I keep getting QUIT and CONNECT HTTP methods sent to my server, what do they mean?

I keep getting the two following errors from my server, I assumed they were just bots looking for potential targets, but does anyone know specifically why I'm getting these? I'm using the SslRequirement plugin to make sure all hits to the login/signup page are redirected to SSL, so all of these weird https requests to root should just b...

Will this urllib2 python code download the page of the file?

urllib2.urlopen(theurl).read() ...this downloads the file. urllib2.urlopen(theurl).geturl()...does this download the file? (how long does it take) ...

Executing server-side Unix scripts asynchronously

We have a collection of Unix scripts (and/or Python modules) that each perform a long running task. I would like to provide a web interface for them that does the following: Asks for relevant data to pass into scripts. Allows for starting/stopping/killing them. Allows for monitoring the progress and/or other information provided by the...

trying to wget my stock portfolio

I'm trying to read my stock portfolio into a script. The following works with NAB Online Trading but not Bell Direct. install the Export Domain Cookies Firefox addon log in to my online broker with Firefox save the domain cookies to a file (eg cookies.txt) wget --no-check-certificate --load-cookies=cookies.txt -O folio.htm https://...(...

Why would a browser make two separate requests for the same file?

I'm debugging a program I wrote and noticed something strange. I set up an HTTP server on port 12345 that servers a simple OGG video file, and attempted to access it from Firefox. Upon sniffing the network requests, I found these two requests were made: GET /video.ogv HTTP/1.1 Host: 127.0.0.1:12345 User-Agent: Mozilla/5.0 (Macintosh; U...

.NET syntax of responsestring to match JS-callback function with multiple parameter

Hi, i would like to pass multiple parameters in my callback function and don't know who to do this... This would be the C# code: Response.Clear(); Response.ContentType = "text/plain"; Response.Write("content of param1"); Response.Write("content of param2"); Response.End(); and the JS code: ...

C# - HttpWebRequest - POST

I am trying to make an Http POST to an Apache web server. I am finding that setting ContentLength seems to be required for the request to work. I would rather create an XmlWriter directly from GetRequestStream() and set SendChunked to true, but the request hangs indefinitely when doing so. Here is how my request is created: priva...

Sending XML over HTTP in a simple, neutral way...

We have some standalone devices that will send XML messages to arbitrary processing software (may be developed by us, may be 3rd party) over HTTP. The messages are relatively simple, and will conform to an existing schema. No specific reply is necessary. I suddenly find myself lost in a world of web service technology jargon. I'd lik...

Refresh image with Javascript, but only if changed on server

I want to reload an image on a page if it has been updated on the server. In other questions it has been suggested to do something like newImage.src = "http://localhost/image.jpg?" + new Date().getTime(); to force the image to be re-loaded, but that means that it will get downloaded again even if it really hasn't changed. Is there a...

How does web filtering software hook into outbound browser requests without browser configuration?

I would like to duplicate the functionality of some web filtering software, however I don't want the user to have to configure their browser. Some other products on the market do this without any apparent configuration in the browser settings. The user would be installing this for themselves, so air-tight filter security is not a prior...

How do I write an HTTP server in Perl?

Is there a webserver or HTTP server module in the Perl standard library or in CPAN or elsewhere? I guess I'm looking for the equivalent of Python 3's http.server module. Thanks! ...

modify request headers in Internet Explorer

Hi Is it possible to modify request headers sent by Internet Explorer. There are addins to do this for Mozilla Firefox. Is there a similar thing for IE. Thanks in advance!! ...

python http handler

I want something like BaseHTTPRequestHandler, except that I don't want it to bind to any sockets; I want to handle the raw HTTP data to and from it myself. Is there a good way that I can do this in Python? To Clarify, I want a class that receives raw TCP data from Python (NOT a socket), processes it and returns TCP data as a response (...

http delete request from browser

is there a way to send a DELETE request from a website, using xmlhttprequest or something similar? ...

Using PHP Curl, how can I look at exactly what is being sent?

For instance, on the following CURL snippet: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); //set target URL curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);// allow redirects curl_setopt($ch, CURLOPT_POST, $usePost); // set POST method curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); //set headers curl_seto...

Advantages of ETags verses updating URL

ETags allow browsers to perform conditional GETs. Only if the resource in question has been altered will the resource have to be re-downloaded. However, the browser still has to wait for the server to respond to its request. An alternative to ETags is to introduce a token into the URL pointing to the resource: http://example.com/css/st...

How can I Parse an HTML response without response headers using Ruby

How can I grab an HTML response when there are no response headers? I've got this: require 'hpricot' require 'open-uri' doc = Hpricot(open('http://192.168.100.1/phy.htm')) The server in this case is a cable modem that is not returning HTTP Response headers. The above code is failing with: C:/Ruby/lib/ruby/1.8/net/http.rb:2022:i...

Socket closing problem - last portion of data is lost.

I have a Java program that accepts connections, receives HTTP requests and sends HTTP replies and some data stored in file (this is a part of caching proxy). Removing everything irrelevant, my code looks like this: FileInputStream fileInputStream = new FileInputStream(file); OutputStream outputStream = socket.getOutputStream(); byte[] b...