I want to download a file/zip archiv. (for example the new ubuntu iso, oe...)
I came across following answer from daydaynatation in this: question
downloadFile :: String -> IO ()
downloadFile url = do
request <- parseRequest url
runResourceT $ httpSink request $ \_ -> sinkFile "tmpfile"
but sadly this downloads only the the site quellcode and not the file which will be downloaded when you navigate to the respective url in the browser of your choice... So is this possible with this approach or what do I have to try otherwise