是否可以从PHP网站调用ASPX页面? [英] Is it possible to call ASPX page from a PHP web site?

查看:75
本文介绍了是否可以从PHP网站调用ASPX页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我正计划在Linux OS的MYSQL数据库上用PHP开发一个站点.无论运行ASP网站的数据库如何,我都需要从PHP页面调用aspx页面.
1.是否可以联系asp站点并更新其数据库上的数据?
2.如果可以,我该怎么办?
你能帮我吗?
在此先感谢
V XLNC

Hi Guys,
I am planning to develop a site in PHP on MYSQL Database with Linux OS. I need to call an aspx page from the PHP page irrespective of the Database that asp site is running on.
1. Is it possible to contact the asp site and update the data on their Database?
2. If yes, how could I do it?
Can you please HELP me?
Thanks in advance
V XLNC

推荐答案

有很多因素,但在下列情况下应该可行:

1)该站点配置为允许远程数据写入
2)已配置正确的身份验证/授权,并且您具有凭据
3)您知道要发送到接收脚本的参数是什么.

如果您要访问的网站上没有任何信息,那么任何人都无法为您提供任何代码或指示.

如果我们可以假定ASP.NET站点公开了Web方法,则所需要做的就是在请求中提供正确的凭据.有了正确的auth标头和正确的请求中的参数,您应该会很好.

从Web参考中寻找可以构建某些东西的PHP工具包.

请注意,应该以防止XSS攻击的方式在IIS 上设置ASP.NET的默认配置.如果您不了解目标应用程序的开发者/发布者,则可能很难到达任何地方.

欢呼.
There are a number of factors, but it should be possible if:

1) The site is configured to allow remote data writes
2) Proper authentication/authorization is configured and you have the credentials
3) You know what parameters are required to send to the receiving script.

Without any information on the site you''re trying to access, no one will be able to offer you any code or direction.

If we can assume the ASP.NET site has webmethods exposed, all that is required is that you provide the proper credentials in your request. With the proper auth header, and the correct params in your request, you should be good to go.

Look for a PHP toolkit that can build something to work with from a web reference.

Note that the default configuration of ASP.NET on IIS should be set up in such a way to prevent XSS attacks; if you don''t know the developer/publisher of the target app you may have a hard time getting anywhere.

Cheers.


是的,您可以通过使用http请求类或使用Web客户端方法将请求发送到asp x页面来做到这一点,并且这些对象以UTF格式发送记录或数据,您可以对其进行解码使用流类.因此,请在php中搜索http请求或网络请求类.这些类在.net中用于调用其他服务器的页面.
yes you can do it by sending request to asp x page either by using http request class or by using web client methods and these object send record or data in UTF format u can decode that using stream classes. so search in php for http request or web request classes. These classes work in .net for calling pages of other server.


这篇关于是否可以从PHP网站调用ASPX页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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