I have the following string
"GET /hello HTTP/1.1
User-Agent: Wget/1.16.1 (linux-gnu)
Accept: */*
Accept-Encoding: identity
Host: localhost:8008
Connection: Keep-Alive"
All I want to extract is the part between GET and HTTP/1.1, so the URL that is getting accessed, /hello in this example.
How can I do this?