v 0.11
Home
All CC
Share CC
Users
Active users
Feedback
This site uses Flattr
Log in
Log in
Search
Log in
-
Sign up
Recover password
Posted by
Vidde
at
2018-05-03 10:34
Handle exceptions from curlurl
If site is not available it throws an exception, so curlurl should always be in a try-block.
[Solution live 2018-05-03]
Attached feedbacks
Uncaught exception 'Exception' with message '301'
Vidde
2018-05-03 10:01
Uncaught exception 'Exception' with message '302'
Vidde
2018-05-03 10:32
[-Hide comments-]
https://simscc.link/cc/id/81/edit is broken because of this =)
For now, we put errors in log as warning. But once we see that it is being thrown correctly, or why it is being thrown, we must stop, because it will clog up the log for no good reason.
The redirect problem is solved by following them instead. I think we only follow one redirect (using CURLOPT_FOLLOWLOCATION)