Thank your for reply Daniel. Considering my limited knowledge of web programming and javascript , first i need to simulated the some sort of browser in my program which will run the javascript and will generate the pdf. After that i can download the pdf . Is this you mean ?  Is Network.Browser any helpful for this purpose ? Is there  way to solve this problem ? <br>
Sorry for  many questions but this  is my first web application program and i am trying hard to finish it. <div><br></div><div>Thank you</div><div>Mukesh Tiwari<br><div><br><div class="gmail_quote">On Fri, Sep 9, 2011 at 4:17 AM, Daniel Patterson <span dir="ltr">&lt;<a href="mailto:lists.haskell@dbp.mm.st">lists.haskell@dbp.mm.st</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">It looks to me that the link is generated by javascript, so unless you can script an actual browser into the loop, it may not be a viable approach.<br>

<br>
On Sep 8, 2011, at 3:57 PM, mukesh tiwari wrote:<br>
<br>
&gt; I tried to use the PDF-generation facilities . I wrote a script which<br>
&gt; generates the rendering url . When i am pasting rendering url in<br>
&gt; browser its generating the download file but when i am trying to get<br>
&gt; the tags , its empty. Could some one please tell me what is wrong with<br>
&gt; code.<br>
&gt; Thank You<br>
&gt; Mukesh Tiwari<br>
&gt;<br>
&gt; import Network.HTTP<br>
&gt; import Text.HTML.TagSoup<br>
&gt; import Data.Maybe<br>
&gt;<br>
&gt; parseHelp :: Tag String -&gt; Maybe String<br>
&gt; parseHelp ( TagOpen _ y ) = if ( filter ( \( a , b ) -&gt; b == &quot;Download<br>
&gt; a PDF version of this wiki page&quot; ) y )  /= []<br>
&gt;                            then Just $  &quot;<a href="http://en.wikipedia.org" target="_blank">http://en.wikipedia.org</a>&quot; ++  ( snd $<br>
&gt; y !!  0 )<br>
&gt;                             else Nothing<br>
&gt;<br>
&gt;<br>
&gt; parse :: [ Tag String ] -&gt; Maybe String<br>
&gt; parse [] = Nothing<br>
&gt; parse ( x : xs )<br>
&gt;   | isTagOpen x = case parseHelp x of<br>
&gt;                        Just s -&gt; Just s<br>
&gt;                        Nothing -&gt; parse xs<br>
&gt;   | otherwise = parse xs<br>
&gt;<br>
&gt;<br>
&gt; main = do<br>
&gt;       x &lt;- getLine<br>
&gt;       tags_1 &lt;-  fmap parseTags $ getResponseBody =&lt;&lt; simpleHTTP<br>
&gt; ( getRequest x ) --open url<br>
&gt;       let lst =  head . sections ( ~== &quot;&lt;div class=portal id=p-coll-<br>
&gt; print_export&gt;&quot; ) $ tags_1<br>
&gt;           url =  fromJust . parse $ lst  --rendering url<br>
&gt;       putStrLn url<br>
&gt;       tags_2 &lt;-  fmap parseTags $ getResponseBody =&lt;&lt; simpleHTTP<br>
&gt; ( getRequest url )<br>
&gt;       print tags_2<br>
<div><div></div><div class="h5">&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Haskell-Cafe mailing list<br>
&gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br>
</div></div></blockquote></div><br></div></div>