headzoo / surf

Stateful programmatic web browsing in Go.
MIT License
1.48k stars 159 forks source link

Get response body not as html #124

Closed jparedesimx closed 3 years ago

jparedesimx commented 3 years ago

I'm doing bow.Body() in a website trying to download an XML. The problem is that I've lost some nodes (one was named ) and the XML nodes are in lowercase.

Response headers: map[Content-Disposition:[attachment;filename=FoliosSII7632602839813820201292259.xml] Content-Language:[es] Content-Type:[application/octet-stream;filename=FoliosSII7632602839813820201292259.xml] Date:[Thu, 10 Dec 2020 01:59:03 GMT] Server:[Apache] Strict-Transport-Security:[max-age=31536000; includeSubDomains]]

Captura de Pantalla 2020-12-09 a la(s) 22 59 53

Any approach to face this issue?

Kind regards.