腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
如何将
post
发送到远程url并重定向到
php
中的url
、
、
、
我以前使用curl,我想通过
POST
将数据从位置A发送到位置B,最后的位置是B而不是A。而实际上最后一个URL是使用curl的A,而不是我真正想要的,如何解决这个问题?我之前用过curl这个方法,我希望通过
POST
方法把数据从地址A发送到地址B,而且最后的地址是B而不是A。但是事实上用curl的话最后的地址是A,不是我事实上期望的,怎样解决这个问题?
php
public function __construct(){ parent::__constru
浏览 3
提问于2014-12-02
得票数 0
2
回答
使用代理与
file_get_contents
、
、
我使用
php
函数
file_get_contents
()来获取数据。可以肯定的是,我的服务器的ip地址将显示在x.com的日志中。有什么方法可以不用代理来隐藏服务器的ip吗?如果我有一个代理,如何与
file_get_contents
()一起使用它? 我需要在HTTP
和
HTTP方法中发送请求
浏览 1
提问于2013-01-26
得票数 6
回答已采纳
2
回答
在网页上获取
POST
答案的cUrl替代方案
、
、
、
这个表单使用
POST
,所以我现在的目标是能够将
POST
数据发送到一个url,并在一个变量中获得结果的HTML内容。
浏览 0
提问于2012-07-13
得票数 2
3
回答
将错误的内容类型发送到Bugzilla安装的
file_get_contents
、
、
这是我的密码: 'method' => '
POST
','header' => 'Content-Type: text/html', ))); $response =
file_get_cont
浏览 5
提问于2012-04-02
得票数 4
1
回答
向imgur API上传图像的错误请求400
、
、
php
$image = base64_encode(
file_get_contents
($_FILES['profileimg']['tmp_name'])); 'method'=>"
POST
",
浏览 14
提问于2019-02-12
得票数 1
2
回答
没有cURL
PHP
的
POST
和
GET
、
、
$this->get_url('http://www.sefaz.pe.gov.br/sintegra/consulta/exibirResultado.asp', $cookie); { } return $result;函数获取
和
发布与fsocketheader
浏览 3
提问于2014-01-14
得票数 1
回答已采纳
1
回答
php
POST
、
stream_context_create
和
file_get_contents
、
、
我已经将
POST
请求的内容和头修改为我认为应该是的样子,但它并没有像我预期的那样拉出文件。'content' => http_build_query($postdata), )$context =
stream_context_create
($opts);它应该返回一个包含德克萨斯学校列表
和
学校数据
浏览 0
提问于2018-08-08
得票数 1
回答已采纳
3
回答
如何在不使用cURL的情况下向API服务发送
和
接收XML数据
、
使用的编程语言是
PHP
。我在互联网上做了这么多的研究,除了使用cURL之外,什么也没有发现。是否还有其他方法可以使用
PHP
来实现这一点。$xml_data = '<mainservice> <appln_id>myid</appln_id>id
和
password用于验证API服务
和
检索特定客户的数据的cust_id。 结果数据也采用
浏览 0
提问于2019-03-19
得票数 1
回答已采纳
1
回答
file_get_contents
和
stream_context_create
的cURL等价物
、
、
我想确保我是正确使用cURL,以取代使用
stream_context_create
和
file_get_contents
的代码片段。以下是来自LinkedIn代码示例的原始代码: array('http' => curl
浏览 2
提问于2015-05-19
得票数 2
1
回答
我有一个问题与“谷歌Recaptcha V2”与
PHP
、
style> </style> <h2>CONTACT US</h2> $full_name = $_
POST
['name']; $phone =
浏览 0
提问于2021-05-30
得票数 0
1
回答
Graph api -发布图像时的单个故事
、
'message' => $mes, )$opts = array('http' => 'method' => '
POST
=> 'Content-type: application/x-www-form-urlencoded', )$context =
浏览 1
提问于2013-04-09
得票数 0
5
回答
将参数发送到URL并从该页面获取输出
我有两个页面,分别是abc.
php
和
def.
php
。当abc.
php
向def.
php
发送两个值id
和
name时,它会显示一条消息"Value received“。现在,我如何在不使用abc.
php
中的表单的情况下将这两个值发送到def.
php
,并从def.
php
获得"Value received“消息?我不能使用表单,因为当用户频繁访问abc.
php
文件时,脚本应该自动工作,并从def.
p
浏览 8
提问于2010-11-30
得票数 0
1
回答
如何标头
stream_context_create
?
、
、
array( 'header' => "Content-type: text/html\r\n", ),$response =
file_get_contents
($url, false, $curl
浏览 2
提问于2015-12-03
得票数 2
回答已采纳
1
回答
用
PHP
中的cookie发布
、
、
、
我想用
PHP
发送一个
POST
请求。我需要在内容中配置两个vars。另外,我需要在头中指定两个cookie。 $url = "http://localhost/web/show_comments.
php
?Cookie: user=luis",
浏览 0
提问于2018-11-20
得票数 0
回答已采纳
1
回答
用
stream_context_create
()返回XML
、
、
我使用
stream_context_create
()而不是cURL来创建HTTP
post
。它是有效的,但是
file_get_contents
()返回所有数据的单个字符串,而不是返回一个XML对象。
php
$data = array( 'name1' => 'data1', 'name2' => 'data2', 'na
浏览 18
提问于2017-02-20
得票数 0
回答已采纳
1
回答
Mailchimp批处理订阅2.0在500+记录上返回False (
PHP
)
、
、
、
我有一个
php
脚本来更新我的订阅者,从我的wordpress用户列表使用批订阅方式更新到Mailchimp。()有什么原因吗?
浏览 8
提问于2015-03-16
得票数 0
回答已采纳
3
回答
如何使用
file_get_contents
在
PHP
中发布数据?
、
、
、
我使用
PHP
的函数
file_get_contents
()来获取URL的内容,然后通过变量$http_response_header处理头部。
浏览 0
提问于2010-03-15
得票数 317
回答已采纳
1
回答
PHP
file_get_contents
500内部服务器错误
我的代码如下:- 'method' => "
POST
"xml\r\nUser-Agent:PHPRPC/1.1\r\n", $file =
file_get_contents<
浏览 2
提问于2014-03-19
得票数 1
回答已采纳
2
回答
file_get_contents
超时在
PHP
中不起作用
、
、
我创建了一个类,用于在
PHP
中使用一些HTTP方法。这里,我有一个HTTP的方法{ $header['header'] = null; $header[
浏览 5
提问于2015-04-23
得票数 4
回答已采纳
2
回答
从
php
文件调用另一个
php
文件,给它一个参数
、
我将用一个简单的例子来解释:$html = get_html("myphp2.
php
", "parameter1"); //pseudocode<html
php
?></html> 因此,基本上$html将保存myphp2.<e
浏览 0
提问于2013-09-19
得票数 0
回答已采纳
点击加载更多
相关
资讯
微信公众号开发微信上的 ToDo
PHP实现微信公众号企业号自定义菜单接口
程序有异常?推送来帮忙
file_get_contents的使用方法
PHP 利用 curl 发送 post/get/del/put/patch 请求
热门
标签
更多标签
云服务器
ICP备案
云点播
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券