How I can make a HTTP request in QT jambi.
System.out.println(qURL.encodedHost());
header.setValue("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98)");
header.setValue("Pragma", "no-cache");
header.setValue("Host","miniorb.in" );
qHttp.setHost("minirob.in");
//qHttp.currentRequest();
qHttp.request(header);
QUrl qURL = new QUrl(url);
System.out.println(qURL.encodedHost());
QHttpRequestHeader header = new QHttpRequestHeader("GET", "/index.html");
header.setValue("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98)");
header.setValue("Pragma", "no-cache");
header.setValue("Host","miniorb.in" );
QObject qObject = new QObject();
QHttp qHttp = new QHttp();
qHttp.setHost("minirob.in");
//qHttp.currentRequest();
qHttp.request(header);
QByteArray xyz = qHttp.readAll();
To copy to clipboard, switch view to plain text mode
I tried to connect with the page in this way. but when I am trying to read it, it is giving me blank output. help me how i can fix it.
Thanks In advance !!!
Bookmarks