[Haskell-cafe] Network.HTTP problem

Radosław Grzanka radoslawg at gmail.com
Sat Nov 17 11:07:41 EST 2007

  I have a problem with Network.HTTP module
(http://www.haskell.org/http/) version 3001.0.0 . I have already
mailed Bjorn Bringert about it but I didn't get answer yet so maybe
someone here can help me. GHC v. 6.6.1 Ubuntu 7.10 x86_64 .

I have turned on debug flag.

Using get example (http://darcs.haskell.org/http/test/get.hs) I can
download pages like this:

$ ./get http://www.haskell.org/http/

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
<title>Haskell HTTP package</title>
<link href="style.css" rel="stylesheet" type="text/css" />
.... SNIP rest of the content SNIP ....

Also the log contain content of this file.

However, some links misbehaves like:

$ ./get http://www.podshow.com/feeds/gbtv.xml

... no-output ...

however I see content of this xml in debug file and wget downloads
almost 250 kB of data.

$ ./get http://digg.com/rss/indexvideos_animation.xml

... hangs ...

and debug file has size 0, but wget downloads the file

I could suspect this is xml problem but:
$ ./get http://planet.haskell.org/rss20.xml

<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">

       <title>Planet Haskell</title>
       <description>Planet Haskell -

.... SNIP rest of the content SNIP ....

so it works.
Do you have any idea what is going on here? What goes wrong? What
other (high level) modules could I use to download files through http?


Codeside: http://codeside.org/
Przedszkole Miejskie nr 86 w Lodzi: http://www.pm86.pl/

More information about the Haskell-Cafe mailing list