A few wide questions:
What error do you receive when performing the curl? Could you share your output of a verbose attempt (
curl -v https://gitlab.com)?
What are you specifically observing when you say “doesn’t open website” / “doesn’t work”?
Does your environment use a HTTP/HTTPS proxy that controls outbound traffic? If yes, is GitLab.com configured within its whitelists by its administrators?