当前位置:网站首页>curl get&post
curl get&post
2022-07-23 18:04:00 【Ideal coder】
Use curl post
$url = 'http://123.xxxx/';
// Parameters of the array
$data = array (
'appid' => $appid,
'appkey' => $appkey,
);
$ch = curl_init ();
curl_setopt ( $ch, CURLOPT_URL, $url );
curl_setopt ( $ch, CURLOPT_POST, 1 );
curl_setopt ( $ch, CURLOPT_HEADER, 0 );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt ( $ch, CURLOPT_POSTFIELDS, $data );
$return = curl_exec ( $ch );
curl_close ( $ch );
echo $return;
边栏推荐
- 分页类
- LQR control learning -lqr control matlab official tutorial -lqr controller_ Modeling and analysis of state space system with matlab/simulink
- The larger the convolution kernel, the stronger the performance? An interpretation of replknet model
- C language -- implementation of address book and screentogif
- rust求两数之和
- Record the range of data that MySQL update will lock
- “如今,99.9% 以上的代码都是垃圾!”
- MySQL主从同步延迟解决方案
- js:图片url转base64编码
- gom及gee架设黑屏的原因以及个别装备地图不显示怎么办?
猜你喜欢

Une erreur s'est produite lors de la configuration du login du moteur Gom: aucun correctif requis n'a été trouvé!

数据集中度分析,数据分布情况

SAP HANA数据库备份失败解决办法

File management system based on OpenPGP

Trust finds the maximum value in the array

Seal player IP and machine code and unlock the blocked tutorial

Sentinel 安装图解

MYSQL基础及性能优化

机器学习(9)——特征工程(3)(补充)

C language -- implementation of address book and screentogif
随机推荐
Tapdata 与优炫数据库完成产品兼容性互认证
Eric6 installation problem
Chi square distribution, analysis of variance
Repository XXX does not have a rease file "suggested collection"
Reinforcement learning -- Markov decision process MP MRP MDP
jps详解
Don't you know more than 30 baby plug-ins like idea that are both easy to use and fun? "Suggested collection"
Create a flow using flow builder in kotlin
Console calculator developed based on C language
The difference between function and method in rust
MySQL operation
TwinCAT 3 first run error 4115
JDBC program example using Preparedstatement
Redis数据丢失问题
Installation and configuration tutorial of mingw-w64
Solution to connection rejected error in idea download sources
卷积核越大性能越强?一文解读RepLKNet模型
分页类
The use method of quota command is expanded in detail, and the carrying method of quota command in RHEL 7! Disk capacity quota!
Leetcode skimming: dynamic planning 04 (different paths)