html5 - converting HTML4 websites to haskell with blaze-from-html -
i trying convert websites html info construction given blaze.
curl -s http://jaspervdj.be/blaze | blaze-from-html this illustration taken end of blaze-html tutorial. curl works, library can't build of html
html $ h.head $ h.title "301 moved permanently" blaze-from-html: attribute bgcolor illegal in html5 indeed, bgcolor has been deprecated. how blaze run html4?
curl -s http://jaspervdj.be/blaze | blaze-from-html -v html4-transitional as suggested comments used transitional features , 301. page redirected?
html $ h.head $ h.title "301 moved permanently" body ! bgcolor "white" $ center $ h1 "301 moved permanently" hr center "nginx/1.2.1" however, wget http://jaspervdj.be/blaze returns html content of page.
this works me:
curl -s http://jaspervdj.de/blaze | blaze-from-html -v html4-transitional as suggested in documentation linked.
as why 1 page empty , says it's been redirected, appears curl sees difference between http://jaspervdj.de/blaze , http://jaspervdj.de/blaze/, , website you're downloading erroneously treating them differently well, while wget seems automatically redirect browser does. suggest contacting website author , suggesting prepare behavior.
html5 haskell html4 blaze-html
No comments:
Post a Comment