[英]how to get company details from mca.gov.in using PHP / CURL / Javascript etc..?
I want to get company details from http://mca.gov.in/DCAPortalWeb/dca/MyMCALogin.do?method=setDefaultProperty&mode=31我想从http://mca.gov.in/DCAPortalWeb/dca/MyMCALogin.do?method=setDefaultProperty&mode=31获取公司详细信息
Only the second input CIN/FCRN/LLPIN/FLLPIN is required .只需要第二个输入 CIN/FCRN/LLPIN/FLLPIN 。 example CIN : U01400DL2014PTC267361
示例 CIN : U01400DL2014PTC267361
I have the following code :我有以下代码:
<?php
$url=http://mca.gov.in/DCAPortalWeb/dca/MyMCALogin.do?method=setDefaultProperty&mode=31';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
$output = curl_exec($ch);
curl_close($ch);
?>
I looked at the source of that page, and don't find any form in that page.我查看了该页面的源代码,在该页面中没有找到任何表单。 It seem to be using JavaScript to retrieve company information after clicking on "Submit" button.
单击“提交”按钮后,它似乎正在使用 JavaScript 来检索公司信息。
So, I don't understand how to input that CIN in the form and retrieve the company details using PHP.所以,我不明白如何在表单中输入该 CIN 并使用 PHP 检索公司详细信息。
Suggest me any method that can help in this case.建议我在这种情况下可以提供帮助的任何方法。
有一个表格发送数据,看:
<form action="/DCAPortalWeb/dca/CompanyMaster.do" method="post" name="CompanyMasterEditForm">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.