Question
Hey everybody!
I want to include html (generated by Aigaion). Something like this:
http://demo2.aigaion.nl/index.php/authors/embed/1148
...
%INCLUDE{"http://demo2.aigaion.nl/index.php/authors/embed/1148"}% doesnt work...
Topic @ Aigaion Forums:
http://www.aigaion.nl/forum/index.php?topic=23.0
IRC:
<breuera> CDot, back again. i asked how to use the %INCLUDE{}%-command on http://demo2.aigaion.nl/index.php/authors/embed/1148
<breuera> someone else with ideas? :=)
* MichaelDaum__ (n=micha@dslb-082-083-153-245.pools.arcor-ip.net) hat #twiki betreten
* tuxtoti (n=harish@122.166.3.107) hat #twiki verlassen
* LarsEik (n=lek_@213.160.247.162) hat #twiki betreten
* eyck (n=eyck@nat.nowanet.pl) hat #twiki betreten
* MichaelDaum_ hat die Verbindung getrennt (Read error: 110 (Connection timed out))
<MartinRowe> breuera: I think your issue is down to the url being redirected before getting the actual link. I can't get it to work either, but other links work fine. I tried with wget:
<MartinRowe> wget http://demo2.aigaion.nl/index.php/authors/embed/1148
<MartinRowe> --15:11:28-- http://demo2.aigaion.nl/index.php/authors/embed/1148
<MartinRowe> => `1148'
<MartinRowe> Resolving demo2.aigaion.nl... 87.119.195.36
<MartinRowe> Connecting to demo2.aigaion.nl|87.119.195.36|:80... connected.
<MartinRowe> HTTP request sent, awaiting response... 302 Found
<MartinRowe> Location: /index.php/login/dologin/authors/embed/1148 [following]
<MartinRowe> --15:11:30-- http://demo2.aigaion.nl/index.php/login/dologin/authors/embed/1148
<MartinRowe> => `1148'
<MartinRowe> Connecting to demo2.aigaion.nl|87.119.195.36|:80... connected.
<MartinRowe> HTTP request sent, awaiting response... 302 Found
<MartinRowe> Location: /index.php/authors/embed/1148 [following]
<MartinRowe> --15:11:31-- http://demo2.aigaion.nl/index.php/authors/embed/1148
<MartinRowe> => `1148'
<MartinRowe> Connecting to demo2.aigaion.nl|87.119.195.36|:80... connected.
<MartinRowe> HTTP request sent, awaiting response... 200 OK
<MartinRowe> Length: 2,279 (2.2K) [text/html]
<MartinRowe> but with something like the BBC website:
<MartinRowe> wget http://www.bbc.co.uk
<MartinRowe> --15:13:23-- http://www.bbc.co.uk/
<MartinRowe> => `index.html'
<MartinRowe> Resolving www.bbc.co.uk... 212.58.253.72
<MartinRowe> Connecting to www.bbc.co.uk|212.58.253.72|:80... connected.
<MartinRowe> HTTP request sent, awaiting response... 200 OK
<MartinRowe> Length: unspecified [text/html]
<MartinRowe> it resolves straight away.
* det_re (n=fin@34.12.50.60.kmr02-home.tm.net.my) hat #twiki betreten
<MartinRowe> The BBC link works fine on the include (apart from most of the images, that is)
Any ideas?
Environment
--
AlexanderBreuer - 31 Jan 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
<uebera||> So the problem seems to be the redirection to the login page, yes? Maybe you could try to install a proxy which gets the page (and is able to follow the redirects) itself and have TWiki query the proxy?
<uebera||> If you have apache2 at hand, that should not be that difficult, but maybe this could even be handled by a small Perl script from within the twiki/bin/ directory.
<uebera||> Ich würde mir ein einfaches Script wie das Plugins:GenPDFLatexAddOn ansehen, da sieht man, wie bspw. eine Form an den Browser gesendet und ausgewertet wird; wenn diese Seite einbindbar ist, sollte der Rest sehr schnell gehen. Fertiglösung kann ich leider nicht anbieten, da ich ein paar Deadlines habe und gerade intensiv an o.g. Add-on/Plugin bastle.
<uebera||> Since this is an english channel :) : I suggest to take a look at a simple Plugin like Plugins:GenPDFLatexAddOn and try to adapt the methods used to display pages/forms.
--
AlexanderBreuer - 31 Jan 2008