Webpage returning HTTP 406 error only when connecting from Qt
问题 I have a test page setup at http://mlecturedownload.com/test-qt.php that has the following code: <?php $foo = $_GET['foo']; if ($foo == "0" || $foo == "1") { echo $foo; } else { echo "Invalid foo"; } Going to this page in a web browser and modifying the value of foo works fine, and using curl works fine as well. But when I send a request from Qt I get an HTTP 406 error code, which means "Not acceptable". Here is how I make the request: void MainWindow::on_send_clicked() { QString url = "http: