So how do you pull cross domain files.

May 11th, 2007 by ScottK | | Filed in DHTML / Ajax

The other day I had an application where I needed to pull an HTTPRequest from a sub domain. Unfortunately same domain policy kicked in and I couldn’t retrieve the needed information. The other bad thing was that these were static HTML pages as well with no server side ability to get the files.

I did some researching and found no information on how this might be solved, nor did I find any real information on server side techniques either.

The solution to static HTML used the ability of Linux’s cron and wget. I set up a cron job that ran a wget, every hour and copied the page into a new page located within the same domain as the app.

I write this because I would love to have any one who ran into and solved the same type of problem. Even server side solutions are welcome because frankly I didn’t find squat out there.


Share Your Thoughts