Trying to connect an IoT device to Twitch to get stream status

<html>
<head><title>400 Bad Request</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
</body>
</html>

That’s what I get back in the serial monitor on the chip. Here’s the code to get that:
while (client.connected()) {
String line = client.readStringUntil(’\n’);
if (line == “\r”) {
Serial.println(“headers received”);
break;
} else {
Serial.println(String("Headers: ") + line);
}
}

Serial.println(“reply was:”);
Serial.println("==========");
String line;
while(client.available()){
line = client.readStringUntil(’\n’); //Read Line by Line
Serial.println(line); //Print response
}
Serial.println("==========");
Serial.println(“closing connection”);

Those all show up with the “Headers” tag in the Serial monitor, so they’re being processed in the inital “headers” section there. From what I can tell, I’m not getting any other information back from the server. (Or I’m missing the code needed to catch it.)