[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: does XMLHttpRequest support https access and setting request =?iso-8859-1?Q?headers_in_qml=3F?=
From:       Bruce Ouyang <bruce.oy () gmail ! com>
Date:       2013-07-21 11:30:34
Message-ID: a9fa3292-d1bc-48d1-8db7-4e0f469f3f33 () gmail ! com
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic