Access HTTP response as string in Go

I’d like to parse the response of a web request, but I’m getting trouble accessing it as string. func main() { resp, err := http.Get(“http://google.hu/”) if err != nil { // handle error } defer resp.Body.Close() body, err := ioutil.ReadAll(resp.Body) ioutil.WriteFile(“dump”, body, 0600) for i:= 0; i < len(body); i++ { fmt.Println( body[i] ) // … Read more

Why is SCTP not much used/known

I recently checked out the book “UNIX Network Programming, Vol. 1” by Richards Stevens and I found that there is a third transport layer standard besides TCP and UDP: SCTP. Summary: SCTP is a transport-level protocol that is message-driven like UDP, but reliable like TCP. Here is a short introduction from IBM DeveloperWorks. Honestly, I … Read more

Network tools that simulate slow network connection [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 6 years ago. Improve this question I would like to visually evaluate web pages response time for several Internet connections types (DSL, Cable, T1, dial-up … Read more

When is it appropriate to use UDP instead of TCP? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 5 years ago. Improve this question Since TCP guarantees packet delivery and thus can be considered “reliable”, whereas UDP doesn’t guarantee anything and packets can … Read more