andelf / go-curl

golang curl(libcurl) binding.
Apache License 2.0
478 stars 129 forks source link

How to return html of the page to variable? #37

Closed pgamaster closed 8 years ago

pgamaster commented 8 years ago

Sorry for a noob question. In php it is CURLOPT_RETURNTRANSFER, 1

How to return html of the page to variable using your lib?

andelf commented 8 years ago

CURLOPT_RETURNTRANSFER was invented by the PHP binding. :( you can hava a look at https://github.com/andelf/go-curl/blob/master/examples/channal_callback.go

pgamaster commented 8 years ago

thanks :)