Hacker News new | ask | show | jobs
by jivejones 5435 days ago
With PHP you can create the headers at the top of the page, with python you can create a 'script' that sends custom headers to a server, thus you could tell the server that its a image via the headers but it could be something different ie a script... Any good developer will look out for this stuff though.
1 comments

So how does the website get my browser to run a python script?

According to the article, this was supposed to work for normal users, not people hacking the server.

All I meant to say was that its easy to send custom headers to a server.

If you are using PHP:

http://php.net/manual/en/function.header.php