久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <i id='z4V0Y'><tr id='z4V0Y'><dt id='z4V0Y'><q id='z4V0Y'><span id='z4V0Y'><b id='z4V0Y'><form id='z4V0Y'><ins id='z4V0Y'></ins><ul id='z4V0Y'></ul><sub id='z4V0Y'></sub></form><legend id='z4V0Y'></legend><bdo id='z4V0Y'><pre id='z4V0Y'><center id='z4V0Y'></center></pre></bdo></b><th id='z4V0Y'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='z4V0Y'><tfoot id='z4V0Y'></tfoot><dl id='z4V0Y'><fieldset id='z4V0Y'></fieldset></dl></div>

      <bdo id='z4V0Y'></bdo><ul id='z4V0Y'></ul>
      <tfoot id='z4V0Y'></tfoot>
      <legend id='z4V0Y'><style id='z4V0Y'><dir id='z4V0Y'><q id='z4V0Y'></q></dir></style></legend>
    1. <small id='z4V0Y'></small><noframes id='z4V0Y'>

      1. 是否有相當于 Perl 的 WWW::Mechanize 的 PHP?

        Is there a PHP equivalent of Perl#39;s WWW::Mechanize?(是否有相當于 Perl 的 WWW::Mechanize 的 PHP?)

              <tbody id='LRklP'></tbody>
              1. <small id='LRklP'></small><noframes id='LRklP'>

                  <bdo id='LRklP'></bdo><ul id='LRklP'></ul>
                • <tfoot id='LRklP'></tfoot>
                  <i id='LRklP'><tr id='LRklP'><dt id='LRklP'><q id='LRklP'><span id='LRklP'><b id='LRklP'><form id='LRklP'><ins id='LRklP'></ins><ul id='LRklP'></ul><sub id='LRklP'></sub></form><legend id='LRklP'></legend><bdo id='LRklP'><pre id='LRklP'><center id='LRklP'></center></pre></bdo></b><th id='LRklP'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='LRklP'><tfoot id='LRklP'></tfoot><dl id='LRklP'><fieldset id='LRklP'></fieldset></dl></div>
                  <legend id='LRklP'><style id='LRklP'><dir id='LRklP'><q id='LRklP'></q></dir></style></legend>
                • 本文介紹了是否有相當于 Perl 的 WWW::Mechanize 的 PHP?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在尋找一個功能類似于 Perl 的WWW::Mechanize,但適用于 PHP.基本上,它應該允許我使用簡單的語法提交 HTTP GET 和 POST 請求,然后解析結果頁面并以簡單格式返回所有表單及其字段以及頁面上的所有鏈接.

                  I'm looking for a library that has functionality similar to Perl's WWW::Mechanize, but for PHP. Basically, it should allow me to submit HTTP GET and POST requests with a simple syntax, and then parse the resulting page and return in a simple format all forms and their fields, along with all links on the page.

                  我知道 CURL,但它有點過于準系統,而且語法非常難看(大量的 curl_foo($curl_handle, ...) 語句

                  I know about CURL, but it's a little too barebones, and the syntax is pretty ugly (tons of curl_foo($curl_handle, ...) statements

                  說明:

                  我想要比目前的答案更高級的東西.例如,在 Perl 中,您可以執行以下操作:

                  I want something more high-level than the answers so far. For example, in Perl, you could do something like:

                  # navigate to the main page
                  $mech->get( 'http://www.somesite.com/' ); 
                  
                  # follow a link that contains the text 'download this'
                  $mech->follow_link( text_regex => qr/download this/i );
                  
                  # submit a POST form, to log into the site
                  $mech->submit_form(
                      with_fields      => {
                          username    => 'mungo',
                          password    => 'lost-and-alone',
                      }
                  );
                  
                  # save the results as a file
                  $mech->save_content('somefile.zip');
                  

                  要使用 HTTP_Client 或 wget 或 CURL 做同樣的事情將需要大量工作,我必須手動解析頁面以查找鏈接、查找表單 URL、提取所有隱藏字段等.我要求 PHP 解決方案的原因是我沒有使用 Perl 的經驗,我可能可以通過大量工作來構建我需要的東西,但如果我能在 PHP 中完成上述操作,速度會快得多.

                  To do the same thing using HTTP_Client or wget or CURL would be a lot of work, I'd have to manually parse the pages to find the links, find the form URL, extract all the hidden fields, and so on. The reason I'm asking for a PHP solution is that I have no experience with Perl, and I could probably build what I need with a lot of work, but it would be much quicker if I could do the above in PHP.

                  推薦答案

                  SimpleTest 的 ScriptableBrowser 可以獨立于測試框架使用.我已經將它用于許多自動化工作.

                  SimpleTest's ScriptableBrowser can be used independendly from the testing framework. I've used it for numerous automation-jobs.

                  這篇關于是否有相當于 Perl 的 WWW::Mechanize 的 PHP?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅動程序)

                        <bdo id='6R2Ud'></bdo><ul id='6R2Ud'></ul>

                        1. <tfoot id='6R2Ud'></tfoot><legend id='6R2Ud'><style id='6R2Ud'><dir id='6R2Ud'><q id='6R2Ud'></q></dir></style></legend>

                          <i id='6R2Ud'><tr id='6R2Ud'><dt id='6R2Ud'><q id='6R2Ud'><span id='6R2Ud'><b id='6R2Ud'><form id='6R2Ud'><ins id='6R2Ud'></ins><ul id='6R2Ud'></ul><sub id='6R2Ud'></sub></form><legend id='6R2Ud'></legend><bdo id='6R2Ud'><pre id='6R2Ud'><center id='6R2Ud'></center></pre></bdo></b><th id='6R2Ud'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='6R2Ud'><tfoot id='6R2Ud'></tfoot><dl id='6R2Ud'><fieldset id='6R2Ud'></fieldset></dl></div>
                        2. <small id='6R2Ud'></small><noframes id='6R2Ud'>

                              <tbody id='6R2Ud'></tbody>
                            主站蜘蛛池模板: 国产十日韩十欧美 | 亚洲精品乱码久久久久久久久 | 理论片免费在线观看 | 中文在线一区二区 | 国产精品国产三级国产aⅴ原创 | 一区二区高清不卡 | 国产精品污www一区二区三区 | 国产伦一区二区三区 | 青青草社区 | 中文字幕在线观看一区 | 国产999精品久久久 午夜天堂精品久久久久 | 日产精品久久久一区二区福利 | 久草院线| 国产精品高 | 婷婷久久久久 | 久久久精选 | 在线观看av免费 | 免费黄色在线观看 | 99精品久久久国产一区二区三 | 久久国产精品视频 | www.啪啪.com| a在线观看 | 黄色毛片大全 | 蜜桃视频在线观看免费视频网站www | 韩日视频在线观看 | 91视频一区 | 欧美日韩久久久久 | 成人婷婷| 久久国产亚洲 | 亚洲人成人一区二区在线观看 | 亚洲视频一区二区三区 | 亚洲国产一区二区三区在线观看 | 久久久久国产精品一区三寸 | 亚洲精品久久久久久一区二区 | 永久免费视频 | 亚洲h视频| 国产精品国产精品国产专区不蜜 | 98成人网 | 成人不卡 | 五月综合色啪 | 免费黄色在线 |