I'm new to socket programming in C (Linux) and currently trying to retrieve a page which works fine as long as there argument is only something like www.example.com
but for instance if I pass:
the code returns the html page contents and all tags ...
but if I use it as
It won't work if I add a / or page at the end of it. Any idea why?
Your help is appreciated.
It seems in new IPv6 I should use getaddrinfo() but since I'm using somebody's else code so don't want to change it too much.