Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDaniel Amazigo
Courses Plus Student 11,357 PointsHTTP 500 when I ran the cURL code for the browser
Hi,
I typed the same code as Alena in this video, at about 3:22 mins into the video, and had a look in the browser but got a HTTP 500. Could this just be a Treehouse server thing or did I miss something.
This was my code at the time.
<?php
$username = 'mikethefrog';
$url = 'https://api.github.com/users/treehouse';
$process = curl_init($url);
curl_setopt($process, CURLOPT_USERAGENT, $username);
curl_exec($process);
curl_close($process);
Would appreciate your help. Thanks.
Daniel Amazigo
Courses Plus Student 11,357 PointsDaniel Amazigo
Courses Plus Student 11,357 PointsThe URL I tried was the workspace url, but with '/curl.php' at the end.