HTTPS: Difference between revisions
Content added Content deleted
m (Added LSL.) |
(→{{header|Groovy}}: Haskell, based on http-conduit example) |
||
Line 215: | Line 215: | ||
new URL("https://sourceforge.net").eachLine { println it } |
new URL("https://sourceforge.net").eachLine { println it } |
||
</lang> |
</lang> |
||
=={{header|Haskell}}== |
|||
{{libheader|http-conduit}} |
|||
{{Works with|GHC|7.4.1}} |
|||
This is just the example from [http://hackage.haskell.org/packages/archive/http-conduit/1.8.5.1/doc/html/Network-HTTP-Conduit.html Network.HTTP.Conduit], with the http URL replaced with an https one, since [http://hackage.haskell.org/package/http-conduit http-conduit] natively supports https without needing any additional work. |
|||
<lang haskell>#!/usr/bin/runhaskell |
|||
import Network.HTTP.Conduit |
|||
import qualified Data.ByteString.Lazy as L |
|||
import Network (withSocketsDo) |
|||
main = withSocketsDo |
|||
$ simpleHttp "https://sourceforge.net/" >>= L.putStr</lang> |
|||
=={{header|Ioke}}== |
=={{header|Ioke}}== |