php cURL,填写一个远程表单 [英] php cURL , fill a remote form

查看:130
本文介绍了php cURL,填写一个远程表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以填写远程表单所需的数据?

is it possible to fill a remote form with the desired data ?

远程表单

<input type=text name=uploads[0] id=attachId0 size=30 onchange="checkUploadFile(this);"><input type=button value="del" id=idAttachOper0 onclick="return delInput('idfilespan','0')"><br id=idAttachBr0>


推荐答案

您必须知道表单发送数据的位置之前你可以发送它,因为你将不得不效仿一个表单。 cURL能够通过许多不同的选项设置向服务器发送POST和GET数据。请查看所有设置的此页。任何以CURLOPT_POST ...开头的都是一个好的选择。

You will have to know where that form sends its data before you can send it, because you will have to emulate a form. cURL has the ability to send POST and GET data to the server via many different option settings. check out this page for all the settings. Anything that start with CURLOPT_POST... is a good bet.

这篇关于php cURL,填写一个远程表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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