does XMLHttpRequest support https access and setting request headers in qml?

Bruce Ouyang bruce.oy at gmail.com
Sun Jul 21 10:15:45 UTC 2013


1, i try to call xhr.open("GET", "https://api.weibo.com/2/short_url/shorten.json?source=3599790545&url_long=http%3A%2F%2Fopen.weibo.com%2Fwiki%2F2%2Fshort_url%2Fshorten") but failed, but i can open this link in google chrome browser.
2, when i try to call xhr.setRequestHeader("Content-Type", "application/json"), an error is throwed out : Error: Invalid state

looking forward for your reply !
thanks advance !



More information about the Plasma-devel mailing list