I'm making a glue script for in php stitching together two pieces of software (IBM's TNPM and Network Weathermap). To get weathermaps OVERLIBGRAPH functionality working i need the url of the graphs that TNPM produces (which are PNGs).
Now TNPM does not seem to have an API to do it, nor are the urls for these graphs very predictable. I dont know much about TNPM, so I might be wrong here. So im treating it as a web application and I try to scrape the graph url from a page which contains this graph.
however my script is on a firewalled server and normally gets its input via a dump. it cannot really access TNPM (by this I mean I cannot use a proxy solution). my boss tells me that opening the firewall so my glue script can access the TNPM server like a normal user is going to take a long time.
So I'm hoping to use javascript to scrape the page from inside the users browser (which presumably is logged in to TNPM). however I am going to run into the same origin policy this way.
it needs to work in internet explorer 8. other browsers cannot get the graphs i want directly (probably due to some sniffer on TNPM banning other browsers).
I dont know a solution, but maybe anyone know a way around the cross origin policy which might work in this case?
update: the problem will be solved from the server side by opening the firewall. So I dont need an answer anymore, although i'd still appreciate it.