Click here to Skip to main content
15,892,768 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: asp.net, ado.net, c# question Pin
jboyd1119-Apr-09 5:53
jboyd1119-Apr-09 5:53 
GeneralRe: asp.net, ado.net, c# question Pin
Yusuf9-Apr-09 6:12
Yusuf9-Apr-09 6:12 
GeneralRe: asp.net, ado.net, c# question Pin
jboyd1119-Apr-09 6:19
jboyd1119-Apr-09 6:19 
GeneralRe: asp.net, ado.net, c# question Pin
Yusuf9-Apr-09 6:25
Yusuf9-Apr-09 6:25 
QuestionCitrix and IE Pin
Jamie Nordmeyer8-Apr-09 9:44
Jamie Nordmeyer8-Apr-09 9:44 
AnswerRe: Citrix and IE Pin
Yusuf8-Apr-09 14:34
Yusuf8-Apr-09 14:34 
GeneralRe: Citrix and IE Pin
Jamie Nordmeyer8-Apr-09 15:44
Jamie Nordmeyer8-Apr-09 15:44 
QuestionButton Press Simulation... [modified] Pin
KEL38-Apr-09 9:36
KEL38-Apr-09 9:36 
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... Cry | :(( ) ?
(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" /> 
                        <img src="/img2/dl_schnell.gif" /> 
                        <br /> 
                        <input type="submit" value="Premium user" /> 
                    </form> 
                </td> 
            </tr> 
        </table> 
    </center>
...


I hope I've chosen the right forum to post this.
Thanks.

Konstantinos

modified on Wednesday, April 8, 2009 3:44 PM

GeneralRe: Button Press Simulation... Pin
KEL38-Apr-09 10:40
KEL38-Apr-09 10:40 
GeneralRe: Button Press Simulation... Pin
Yusuf8-Apr-09 14:37
Yusuf8-Apr-09 14:37 
GeneralRe: Button Press Simulation... Pin
KEL38-Apr-09 17:31
KEL38-Apr-09 17:31 
QuestionCalling a batch file from web application Pin
alchong8-Apr-09 9:20
alchong8-Apr-09 9:20 
AnswerRe: Calling a batch file from web application Pin
Yusuf8-Apr-09 14:45
Yusuf8-Apr-09 14:45 
GeneralRe: Calling a batch file from web application [modified] Pin
alchong9-Apr-09 5:35
alchong9-Apr-09 5:35 
GeneralRe: Calling a batch file from web application Pin
Yusuf9-Apr-09 6:00
Yusuf9-Apr-09 6:00 
GeneralRe: Calling a batch file from web application Pin
alchong9-Apr-09 6:06
alchong9-Apr-09 6:06 
GeneralRe: Calling a batch file from web application Pin
Yusuf9-Apr-09 6:16
Yusuf9-Apr-09 6:16 
GeneralRe: Calling a batch file from web application Pin
alchong9-Apr-09 6:50
alchong9-Apr-09 6:50 
GeneralRe: Calling a batch file from web application Pin
Yusuf9-Apr-09 6:54
Yusuf9-Apr-09 6:54 
QuestionPassowrd Lenght!! Pin
Sr...Frank8-Apr-09 5:38
Sr...Frank8-Apr-09 5:38 
AnswerRe: Passowrd Lenght!! Pin
Yusuf8-Apr-09 5:47
Yusuf8-Apr-09 5:47 
GeneralRe: Passowrd Lenght!! Pin
Sr...Frank8-Apr-09 5:55
Sr...Frank8-Apr-09 5:55 
GeneralRe: Passowrd Lenght!! Pin
Yusuf8-Apr-09 6:02
Yusuf8-Apr-09 6:02 
QuestionRuntime Gridview (provide Textbox for a cell and update the data to database) Pin
Pawan Kiran8-Apr-09 5:33
Pawan Kiran8-Apr-09 5:33 
AnswerRe: Runtime Gridview (provide Textbox for a cell and update the data to database) Pin
Abhijit Jana8-Apr-09 5:40
professionalAbhijit Jana8-Apr-09 5:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.