download zip file from url

1,286 views
Skip to first unread message

sounthar cs

unread,
Jan 23, 2013, 9:22:05 AM1/23/13
to golan...@googlegroups.com
Hi there,
i want to download or read zip file (from another url) through the http.Get() or something else which is possible.

for example :

www.example.com/one.zip

one.zip may contain one or more .txt files.

thank u :)

Kyle Lemons

unread,
Jan 23, 2013, 5:11:50 PM1/23/13
to sounthar cs, golang-nuts
Use http.Get, wrap the resp.Body in a zip.Reader.  Voila :)



--
 
 

Daniel Theophanes

unread,
Jan 23, 2013, 8:27:27 PM1/23/13
to golan...@googlegroups.com

Naitik Shah

unread,
Jan 23, 2013, 8:30:13 PM1/23/13
to Daniel Theophanes, golan...@googlegroups.com
Also might find http://godoc.org/github.com/daaku/go.httpzip useful.
> --
>
>



--
-Naitik
Reply all
Reply to author
Forward
0 new messages