Faking browser request in ASP.net C#

后端 未结 4 1137
自闭症患者
自闭症患者 2020-12-15 12:14

I\'m using the code below to pull one of our 3rd party developed pages in so I can parse it as XML for my random bits of work.

Irritatingly we stil have a browser de

4条回答
  •  盖世英雄少女心
    2020-12-15 12:52

    You can use the ClientTarget attribute in the Page. E.g.

    http://msdn.microsoft.com/en-us/library/system.web.ui.page.clienttarget.aspx

    http://msdn.microsoft.com/en-sg/library/6379d90d(v=vs.85).aspx

    Set the configuration as you wish...

    E.g.

    
       
          
             
             
             
             
          
       
    
    

    Then you can use it as follows.

    
    

    This will fake the request!

提交回复
热议问题