如何使用PHP發送POST請求? - How do I send a POST request with PHP?

問題:

Actually I want to read the contents that come after the search query, when it is done. 實際上,我想閱讀搜索查詢以後的內容,完成以後。 The problem is that the URL only accepts POST methods, and it does not take any action with GET method... 問題在於URL僅接受POST方法,而且對GET方法不執行任何操做... dom

I have to read all contents with the help of domdocument or file_get_contents() . 我必須在domdocumentfile_get_contents()的幫助下閱讀全部內容。 Is there any method that will let me send parameters with POST method and then read the contents via PHP ? 有什麼方法可讓我使用POST方法發送參數,而後經過PHP讀取內容? spa


解決方案:

參考一: https://stackoom.com/question/NhA5/如何使用PHP發送POST請求
參考二: https://oldbug.net/q/NhA5/How-do-I-send-a-POST-request-with-PHP
相關文章
相關標籤/搜索