As noted by Pavel Slama in https://bugzilla.redhat.com/show_bug.cgi?id=1403084#c2 the product-update script should send an Accept header in its HTTP request to indicate that it wants JSON (preferably) or XML, in case the end point it is pointed out does content negotiation and could return other formats by default (like HTML).