title: GET request by QWebEngineHttpRequest (PyQt5)
body: <p>I want to send a http <code>GET</code> request using QWebEngineHttpRequest.</p>
  <p>I know it is possible, as I found <a href="https://stackoverflow.com/questions/51686198/post-request-by-qwebenginehttprequest-pyqt5">this question</a> with a <code>POST</code> request using it.</p>
  <p>So, I've ended up with some code but it doesn't work. Let's say I want to make a get request to facebook webpage and print the answer, which should be the HTML content of the page.</p>
  <pre><code>import sys
  from PyQt5 import *
          
  def handle_response():
      print(bytes(replyObject.readAll()).decode(&quot;utf-8&quot;))
          
  if __name__ == &quot;__main__&quot;:
  
      def app():
          app = QApplication(sys.argv)
          req = QtWebEngineCore.QWebEngineHttpRequest(QUrl(&quot;https://stackoverflow.com/questions/51686198/&quot;, 
              method=QWebEngineHttpRequest.Get)
          req.setHeader(QByteArray(b'Content-Type'),QByteArray(b'application/json'))
          web = QWebEngineView()
          web.loadFinished.connect(on_load_finished) # will be error
          sys.exit(app.exec_())
  </code></pre>