简体   繁体   English

将用户名/密码发送到URL并返回ID号

[英]Sending a username/password to URL and returning an ID number

I have to send some login credentials to our server, which will validate them and send a customer ID back. 我必须将一些登录凭据发送到我们的服务器,该凭据将对其进行验证并发送回客户ID。 Actually it displays the customer ID on the screen if you visit the URL from a browser. 实际上,如果您从浏览器访问URL,它将在屏幕上显示客户ID。 I have written the part the fabricates the URL, but I don;t know how to make such a request and then return that Customer ID into a string in my iphone app. 我已经编写了构造URL的部分,但是我不知道如何发出这样的请求,然后将该客户ID返回到我的iPhone应用程序中的字符串中。

An example URL to a test account is: https://order.americantaxi.com/ATOnlineOrderWeb/servlet/SmartApp?command=login&u=babarshabbir&p=babarshabbir 测试帐户的示例URL是: https : //order.americantaxi.com/ATOnlineOrderWeb/servlet/SmartApp?command=login&u=babarshabbir&p=babarshabbir

Any pointer in the right direction is greatly appreciated! 任何朝着正确方向的指针将不胜感激!

查看iOS开发人员库中的“ URL加载系统编程指南”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM