Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] HTTP Header Spoof
- From: flavio at economisa.com.br (Flavio Gomes)
- Subject: [Javascript] HTTP Header Spoof
- Date: Tue Jun 29 09:13:58 2004
Hello Everyone, I'm having a little problem here, I got a server with PHP enabled that I pay for stream and disk space, and another freeserver that hosts my big images and files. But when I do something like <img src="http://freeserver/myimage.jpg"> from PHP server, I got a forbidden message, because it doesnt let me use their band... Well, using PHP I could manage to bring the files through header spoofing and setting the "Referer" to a "http://freeserver" page, but still I use my PHP paid stream to download the files, because the URL'll seems like: <img src="http://phpserver/download.php?file=http|freeserver/myimage.jpg"> And *here* is where /Jscript/ gets in: In order to save the stream use, I tought that something like XMLhttp object would help me... so the user would download directly from "http://freeserver" But, XMLhttp doesnt let me access another host u.u ("You cannot open a connection to a different host" => http://www.mozilla.org/xmlextras/ ) Aaaaand here comes the question: I'd like to know if anybody knows a way to /hack/ XMLhttp to allow access to diferent hosts or any other idea so I'd be able to use my nice freeserver images on my phpserver? ^^ Thanks in advance, --- Flavio Gomes flavio@xxxxxxxxxxxxxxxx
- Prev by Date: [Javascript] Cloneing rows from a document write page
- Next by Date: [JavaScript] HTTP Header Spoof
- Previous by thread: [Javascript] Cloneing rows from a document write page
- Next by thread: [JavaScript] HTTP Header Spoof
- Index(es):