Click here to Skip to main content
15,915,603 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: chat application Pin
Rajeesh MP8-Apr-09 19:00
Rajeesh MP8-Apr-09 19:00 
GeneralRe: chat application Pin
dotnetmember8-Apr-09 18:25
dotnetmember8-Apr-09 18:25 
QuestionWebservice fileupload timeout Pin
circle-driver8-Apr-09 12:28
circle-driver8-Apr-09 12:28 
AnswerRe: Webservice fileupload timeout Pin
Yusuf8-Apr-09 14:27
Yusuf8-Apr-09 14:27 
GeneralRe: Webservice fileupload timeout [modified] Pin
Rajeesh MP8-Apr-09 18:10
Rajeesh MP8-Apr-09 18:10 
GeneralRe: Webservice fileupload timeout Pin
circle-driver8-Apr-09 22:52
circle-driver8-Apr-09 22:52 
GeneralRe: Webservice fileupload timeout Pin
circle-driver8-Apr-09 22:45
circle-driver8-Apr-09 22:45 
GeneralRe: Webservice fileupload timeout Pin
Rajeesh MP8-Apr-09 23:47
Rajeesh MP8-Apr-09 23:47 
AnswerSolved! Pin
circle-driver12-Apr-09 23:24
circle-driver12-Apr-09 23:24 
GeneralRe: Solved! Pin
Yusuf13-Apr-09 13:56
Yusuf13-Apr-09 13:56 
AnswerRe: Webservice fileupload timeout [modified] Pin
circle-driver9-Apr-09 1:25
circle-driver9-Apr-09 1:25 
Questionasp.net, ado.net, c# question Pin
jboyd1118-Apr-09 11:17
jboyd1118-Apr-09 11:17 
AnswerRe: asp.net, ado.net, c# question Pin
Christian Graus8-Apr-09 11:26
protectorChristian Graus8-Apr-09 11:26 
AnswerRe: asp.net, ado.net, c# question Pin
Yusuf8-Apr-09 12:38
Yusuf8-Apr-09 12:38 
GeneralRe: asp.net, ado.net, c# question Pin
jboyd1119-Apr-09 3:18
jboyd1119-Apr-09 3:18 
GeneralRe: asp.net, ado.net, c# question Pin
Yusuf9-Apr-09 5:32
Yusuf9-Apr-09 5:32 
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 

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.