Javascript登录到Windows应用商店的网站 [英] Javascript to login to a site for windows store app

查看:118
本文介绍了Javascript登录到Windows应用商店的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用HTML和javascript开发一个Windows应用商店应用。我需要使用我的应用程序中的用户名和密码登录网站。

I'm developing a windows store app using HTML and javascript. I need to login into a site with username and password from my application.

示例: http://www.160by2.com/index

应用程序读取用户名和密码并将其发送到网站。验证后,网站响应在应用程序中显示为登录成功!或登录失败...

The application reads the username and password and sends it to the website. After verification, the website response is shown in the application as "Login success!" or "login failure"...

我是Windows应用程序开发的新手:)

I'm a novice in windows app development :)

I如果发布示例代码,将非常感谢。谢谢:)

I would be very thankful if sample code is posted. Thanks :)

推荐答案

如果这是您自己的网站,您可以发布可以通过XHR从您的应用程序访问的RESTful API。如果不是,您必须在登录网站时看到POST / GET消息发送到服务器的内容。您可以使用Chrome或Fiddler中的开发人员工具截取消息来分析HTTP消息

if that is your own website you can publish an RESTful API that can be accessed from your application with XHR. If not you have to see what the POST/GET message sent to the server when you are login to the website. You can intercept the message by using Developer Tools in Chrome or Fiddler to analyze the HTTP message

这篇关于Javascript登录到Windows应用商店的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆