Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Button Press Simulation... [modified]

Button Press Simulation... [modified]

Scheduled Pinned Locked Moved ASP.NET
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KEL3
    wrote on last edited by
    #1

    Hello. I am trying to make my own (freeware) Rapidshare downloader in C# and I need a way to do the button press simulation (for the "Free User" button on the rapidshare page). Below is the HTML code for the 2 available buttons (free & premium). Right now, I am using a WebClient to get the HTML page and I 've read on the net that I must make an http Request for the link placed in the value of action. However this is not enough (I return to the same page). I guess I must use the HttpWebRequest, the action="..." and the id="ff" to make it work. Can anyone tell me how exactly (because I have no idea yet... :(( ) ? (I mean... where do I put the id) I 've found this: How to use HttpWebRequest and HttpWebResponse in .NET[^] but should I put the id in the webrequest.Headers like that (?): webrequest.Headers.Add("id", "ff"); ???

    </script>
    <h1>FILE DOWNLOAD</h1>
    <div class="klappbox">
    <p class="downloadlink">http://rapidshare.com/files/206907912/Stealth.rar <font style="color:#8E908F;">| 33 KB</font></p>
    <center>
    <table>
    <tr valign="top">
    <td width="300" style="text-align:center;">
    <form id="ff" action="http://rs764.rapidshare.com/files/20600000/a.rar" method="post">
    <input type="hidden" name="dl.start" value="Free" />
    <img src="/img2/dl_langsam.gif">
    <br />
    <input type="submit" value="Free user" />
    </form>
    <script type="text/javascript">
    <!--
    if (window.location.hash == "#dlt")
    document.getElementById("ff").action += "#dlt";
    //-->
    </script>
    </td>
    <td width="300" style="text-align:center;">
    <form action="http://rs764.rapidshare.com/files/20600000/a.rar" method="post">
    <input type="hidden" name="dl.start" value="PREMIUM" />

    K 1 Reply Last reply
    0
    • K KEL3

      Hello. I am trying to make my own (freeware) Rapidshare downloader in C# and I need a way to do the button press simulation (for the "Free User" button on the rapidshare page). Below is the HTML code for the 2 available buttons (free & premium). Right now, I am using a WebClient to get the HTML page and I 've read on the net that I must make an http Request for the link placed in the value of action. However this is not enough (I return to the same page). I guess I must use the HttpWebRequest, the action="..." and the id="ff" to make it work. Can anyone tell me how exactly (because I have no idea yet... :(( ) ? (I mean... where do I put the id) I 've found this: How to use HttpWebRequest and HttpWebResponse in .NET[^] but should I put the id in the webrequest.Headers like that (?): webrequest.Headers.Add("id", "ff"); ???

      </script>
      <h1>FILE DOWNLOAD</h1>
      <div class="klappbox">
      <p class="downloadlink">http://rapidshare.com/files/206907912/Stealth.rar <font style="color:#8E908F;">| 33 KB</font></p>
      <center>
      <table>
      <tr valign="top">
      <td width="300" style="text-align:center;">
      <form id="ff" action="http://rs764.rapidshare.com/files/20600000/a.rar" method="post">
      <input type="hidden" name="dl.start" value="Free" />
      <img src="/img2/dl_langsam.gif">
      <br />
      <input type="submit" value="Free user" />
      </form>
      <script type="text/javascript">
      <!--
      if (window.location.hash == "#dlt")
      document.getElementById("ff").action += "#dlt";
      //-->
      </script>
      </td>
      <td width="300" style="text-align:center;">
      <form action="http://rs764.rapidshare.com/files/20600000/a.rar" method="post">
      <input type="hidden" name="dl.start" value="PREMIUM" />

      K Offline
      K Offline
      KEL3
      wrote on last edited by
      #2

      On second review, it seems that Rapidshare is well protected so that download-manager-makers have a hard time... Perhaps I should post a question here : http://www.hackforums.net[^] :sigh:

      kostas KEL

      Y 1 Reply Last reply
      0
      • K KEL3

        On second review, it seems that Rapidshare is well protected so that download-manager-makers have a hard time... Perhaps I should post a question here : http://www.hackforums.net[^] :sigh:

        kostas KEL

        Y Offline
        Y Offline
        Yusuf
        wrote on last edited by
        #3

        You are trying to second guess rapidshare ( for that matter any other site ). What happens if they change they page or controls? you code will be easily broken.

        Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

        K 1 Reply Last reply
        0
        • Y Yusuf

          You are trying to second guess rapidshare ( for that matter any other site ). What happens if they change they page or controls? you code will be easily broken.

          Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

          K Offline
          K Offline
          KEL3
          wrote on last edited by
          #4

          Yes. That is a problem. However, if I learn how to do it once, then I could do it easier and faster the next time(s). And in the process of trying, I will learn new things. As a poet would say (I don't like poetry by the way...) it's more about the journey, not the destination. ;)

          kostas KEL

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups