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
Post a Comment