Debugging a Protocol Network Error
Hi, I'm trying to write a simple test app to post a SOAP request.
I'm using the example code from the QNetworkAccessManagerDoc.
I set the header's content type to text/html and utf-8. I set accept to application/soap+xml
I call manager->post(request, xmlQString.toUtf8())
The error I keep getting back is 301: "the Network Access API cannot honor the request because the protocol is not known"
Can anyone give me hints about what could be causing that type of error? For example, header, content or connection?
Are you sure the service you're trying to use is a SOAP service?
Gah! After almost 2 hours of trying to solve this someone just pointed out that I needed "http://" in front of the IP when I call request.setUrl(QUrl("000.000..."))
Sorry for the post! :)
Thanks for suggestion reactive!
I had the same issue and adding @http://@ helped me.