3 ms·
Is HTTP header just a codeword for cookie? How does a website get the browser to send custom headers?
by tedunangst 15y ago
Is HTTP header just a codeword for cookie? How does a website get the browser to send custom headers?
- yahelc 15y agoYou can send custom HTTP headers from the browser with XMLHTTPRequest, commonly referred to as AJAX. Not totally sure if this is what the poster is referring to, but its possible.
- tedunangst 15y agook, I didn't think a payment processor would be using a cross domain xmlhttprequest, but I don't know a lot about it.
- midnightmonster 15y agoHTTP header is code for "POST data".
- cheez 15y agoOh god, thanks. I was confused about this new-fangled technique of using "HTTP headers" to pass pricing information...
- tedunangst 15y agoThat makes sense. It was worth the negative karma to solve the mystery. :)
- jivejones 15y agoWith 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.
- tedunangst 15y agoSo 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.
- jivejones 15y agoAll 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 http://php.net/manual/en/function.header.php