简体   繁体   English

如何使用PHP填写远程ColdFusion表单?

[英]How to fill a remote ColdFusion form using PHP?

How to fill a remote ColdFusion form and submit it using PHP running on my server? 如何填写远程ColdFusion表单并使用服务器上运行的PHP提交? I want to fill a search form on a remote website, which I don't have access to and which is written in ColdFusion, with the data given on my PHP website. 我想用我的PHP网站上提供的数据在我无法访问且用ColdFusion编写的远程网站上填写搜索表格。 I tried PHP cURL, but that didn't work. 我尝试了PHP cURL,但是没有用。 Don't know whether it is our problem or not. 不知道这是否是我们的问题。

www.arello.com I want to fill the form on right side of that website. www.arello.com我想填写该网站右侧的表格。 What I get on my php website is users License number. 我在php网站上得到的是用户许可证号。 So I want to submit that query to the form and arello.com which is on Coldfusion and submit it to verify the license details. 因此,我想将该查询提交到Coldfusion上的表单和arello.com,然后提交以验证许可证详细信息。 Is there anyway, I can verify using that site with details from my site? 无论如何,我可以使用该网站的详细信息进行验证吗?

It does not really have anything to do with ColdFusion per se. 它本身与ColdFusion并没有任何关系。 Like a lot of sites, they restrict or prohibit automated access. 像许多网站一样,它们限制或禁止自动访问。 Their terms of use state that: 他们的使用条款规定

"... [this site] uses robot exclusion methods that expressly allow and/or exclude specified automated programs from accessing certain portions of the Website". “ ... [本网站]使用机器人排除方法,明确允许和/或排除指定的自动化程序访问网站的某些部分”。

One of the methods they are using is to inspect the http referrer value of incoming requests. 他们使用的方法之一是检查传入请求的http引用来源值。 If that header is missing or empty, they block access. 如果该标头丢失或为空,它们将阻止访问。 Most likely that is why your cURL request fails. 这很可能是您的cURL请求失败的原因。 It is being blocked by design. 它被设计阻止。 You should contact them and ask about gaining programmatic access. 您应该与他们联系,并询问有关获得程序访问的信息。 Their home page says they offer a "License Verification Web Service": 他们的主页说他们提供了“许可证验证Web服务”:

"...This new service will allow organizations to connect to ARELLO's database and .. verify licenses in mass numbers. Contact ARELLO for more information ..." “ ...这项新服务将使组织可以连接到ARELLO的数据库并..验证大量许可证。请与ARELLO联系以获取更多信息...”

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

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