문제

From ATL VC++ BHO i want to call http://localhost:8888 with some post data and receive data back from it. Basically IE extension would need to call HTTP POST request. From BHO code if I inject javascript and there add AJax post call this is not allowed because of cross site restrictions. Any suggestions on this ?

도움이 되었습니까?

해결책 2

You can make HTTP request directly from your BHO code. Check this article for code samples

다른 팁

Thanks,

Following code works for C# BHO :-

using (var wb = new WebClient())
                {
                    var data = new NameValueCollection();
                    data["user"] = "D";
                    data["id"] = "E";
                    data["token"] = "token";
                    var response = wb.UploadValues("http://localhost:8888", "POST", data);
                }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top