Fun With HTTP Headers
nextthing.org
nextthing.org
curl -i -s --head http://www.vg.no/ | grep N Connection: -> X-Ignore-X: Connection: close
replaced with X-Ignore-X: closeMy guess is that the load balancer tried to invalidate the header while preserving the TCP checksum.
open firebug, enable net monitoring, look at the very first GET request, check out the headers, scan for sense of humor.
---
stick this in your controller:
headers["We-Are-Uh-Meh-Zing"] = "true on sunny days"
# Assume we have functions GetUrls() that retrieves a list
# of the urls we want to get, and Download(url) which
# downloads the content of a url and sticks it in the
# database.
import multiprocessing
pool = multiprocessing.Pool(processes=100)
urls = GetUrls()
pool.map(Download, urls)
See:http://docs.python.org/library/multiprocessing.html
http://docs.python.org/library/threading.html
Also, if you're entering results into a database, the easiest way may be just to spawn multiple python processes from the command line.
HTTP/1.0 404 Not Found X-Kazaa-Username: anonymous_user X-Kazaa-Network: KaZaA X-Kazaa-IP: xx.xx.xx.xx:1348 X-Kazaa-SupernodeIP: xx.xx.xx.x:3699
It looked like it was running on someone’s DVR. Anyone have any pointers as to what software does that?
Uh, Kazaa does that. Not a DVR.