Generally you can download a file by using GET request and upload it with POST request. See urlEncodedBody in http-enumerator: <a href="http://hackage.haskell.org/packages/archive/http-enumerator/0.7.2.3/doc/html/Network-HTTP-Enumerator.html#v:urlEncodedBody" target="_blank">http://hackage.haskell.org/packages/archive/http-enumerator/0.7.2.3/doc/html/Network-HTTP-Enumerator.html#v:urlEncodedBody</a><div>

<br></div><div>Best regards,</div><div>Krzysztof Skrzętnicki<br>
<br><div class="gmail_quote">2012/1/13 Никитин Лев <span dir="ltr">&lt;<a href="mailto:leon.v.nikitin@pravmail.ru" target="_blank">leon.v.nikitin@pravmail.ru</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hello.<br>
<br>
Can I upload file using http-enumerator, hxt?<br>
<br>
What best way to take a html page from one server, maybe make some transformation of this html and upload it (transformed) to other server?<br>
<br>
I can use hxt to download file and to do some transformation. But how can I upload it to other server?<br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</blockquote></div><br>
</div>