go - Golang http.Get block resources -


how can use golang's net/http's http.get(url string) block url's , resources request?

e.g.

http.get("https://google.com") // somehow block main css file. 

you not need block urls , resources because net/http get() not automatically perform fetching of included links or resources.

you confuse how browser fetches url. browser issue request , follow fetching resources (javascript/css/images/videos etc.) go's net/http request lower level - more curl fetch - follow redirect default, otherwise fetch single response request. can think of result of issuing call `http.get("https://google.com") similar see in browser page source (plus http headers , response code). response include number of other urls links , resources - if like, can parse them out , request or of them (leaving out want "block"), low-level web crawlers do.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -