Menu

connection to php page

Help
SpencerWHJ
2004-10-21
2013-04-27
  • SpencerWHJ

    SpencerWHJ - 2004-10-21

    Some php pages can distinguish whether the client access it from the main page or link the page directly. If we use Stringbean to link the page directly, the server will return an error information instead of the web page we desire to fetch.

    The example main page: http://www.cna.com.tw/
    One sub-page from the main page: http://www.cna.com.tw/ciplist.php?date=1098351005&class=2PF

    Could anyone please help me solve this problem? Thanks a lot

     
    • Derrick Oswald

      Derrick Oswald - 2004-10-21

      You may need to condition the HTTP connection (probably by just adding the "Referer" request property) and pass it in to the StringBean. There is an example (using forms, but the idea is the same) at:
      http://htmlparser.sourceforge.net/wiki/index.php/PostOperation

       
    • SpencerWHJ

      SpencerWHJ - 2004-10-22

      thanks a lot! It works!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.