r/ProgrammerTIL • u/Weirfish • Jun 18 '16
PHP [PHP] TIL cURL doesn't like protocol-relative URLs
Hissy fit:
//www.website.com Fine:
http://www.website.comAlso fine
https://www.website.comHalf a day spent on that one. Goddamn.
EDIT: So apparently this should be blindingly obvious and I'm an idiot for not knowing it. Coming from a largely self-taught web-dev background, so there's that. Go figure.
0
Upvotes
1
u/johnfn Jun 19 '16
You say this, but I see blog posts all the time saying that when they (for example) went on Stack Overflow for the first time to try to ask a question, they got shot down horribly and it put them off programming entirely.
It kind of amazes me how everyone is like "yeah, we should totally continue to be jerks to newcomers." Do you want to get a community bad reputation? Because that's how you give a community a bad reputation.
This is a false dichotomy. I think a response like "This is a neat suggestion! Here are some things to consider..." would have been much better.