On 2013年7月21日星期日 CST下午6时15分45秒, Bruce Ouyang wrote:
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.
now i think xhr in qml support https access, there is some other problem in my
little program.
2, when i try to call xhr.setRequestHeader("Content-Type",
"application/json"), an error is throwed out : Error: Invalid
state
my mistake. i should call xhr.setRequestHeader after xhr.open
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel