如何在不重定向的情况下将帖子发送到不同的网站并获得结果 [英] How to send post to diffrent website and recive result without redirecting
本文介绍了如何在不重定向的情况下将帖子发送到不同的网站并获得结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只是试图编写一个小的php脚本,使我可以从网站下面的链接"中获取信息并加载到我网站上的某些div上:
i just trying to write a small php script that allow me to get information from website "link below" and load to some div on my website :
https://www.sspcrs.ie/portal/checker/home.do
info:否.324234有效
info : no. 324234 is valid
推荐答案
您可以使用curl来获取URL并包含发布数据.获得响应后,您可以在页面上将其回显到div中.此链接演示了卷曲和发布: http://davidwalsh.name/curl-post
You can use curl to grab a url and include post data. Once you have the response you can echo this into your div on your page. This link demonstrates curl and post: http://davidwalsh.name/curl-post
这篇关于如何在不重定向的情况下将帖子发送到不同的网站并获得结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文