On 2013-06-09 10:09, guytam...@gmail.com wrote: > I'm working on a new project and i want to receive a request from a > user and to redirect him to a third party site, but on the page > after i redirect my users i want to them to see injected html (on > the third party site.)
As others have stated, I'm not sure this is a Python problem. Two possibilities occur to me: 1) Your server returns a page with an <iframe> that points to the page they want, but then injects HTML into that iframe using ECMAScript. Some browsers may thwart you from doing this. Test thoroughly in multiple browsers. 2) Your server goes and fetches the contents of the requested page, then mungs it, and returns it from your server. This might also require modifying internal links on the target page so that they redirect through your local site. Be sure to test thoroughly, and this may also have legality concerns (you're copying others' content and displaying it on your site, so there may be copyright issues), so also check with your lawyer. Generally, these techniques are in the same bag of tricks that phishers use, so you might also have to make sure that your site is not getting filed as a phishing site (unless you are trying to make a phishing site, in which case don't). -tkc -- http://mail.python.org/mailman/listinfo/python-list