How to send post to diffrent website and recive result without redirecting

微笑、不失礼 提交于 2019-12-13 04:32:04

问题


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 : no. 324234 is valid


回答1:


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



来源:https://stackoverflow.com/questions/17892376/how-to-send-post-to-diffrent-website-and-recive-result-without-redirecting

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!