willst du als freeuser von rapid laden ?dann ist es mit einem request nicht getan.
hier mal mein rapidsharforlinux source (nur ein teil - nicht lauffähig)
da kannst du sehn was so alles gesendet werden muss, ich denke der ist ut selbsterklärend.
Code: Alles auswählen
;#RSFL RapidshareForLinux V 0.08
;# Init
IncludeFile "/home/bert/Source/Http/HttpLinux.pb"
IncludeFile "/home/bert/Source/Tools.pb"
Global Sparameter.s,sparameterstart.s,sRapidsharelink.s,sRapidshareresponse.s
Global qConid.q,qWaitime.q
Global sRSSESSION.s,Sfilename.s,surlpath.s
InitNetwork()
;# Main
OpenConsole()
sparameterstart = ProgramParameter()
sparameter = LCase(Left(sparameterstart,2))
PrintN("RapidshareForLinux V 0.08 Copyrigth by Time2idie81 2009")
PrintN("")
Select Sparameter
Case "-l"
sRapidsharelink = RemoveString(sparameterstart,"-l",#PB_String_NoCase)
EndSelect
PrintN("Loading :"+sRapidsharelink)
PrintN("Connecting Rapidshare...")
qconid = OpenNetworkConnection("rapidshare.com",80)
If qconid
PrintN("Connected to Rapidshare.")
Else
PrintN("Can't connect!")
End
EndIf
PrintN("Send Request.")
;# Request 1. erstellen
HTTPCreateHeader(*Headerbuffer,sRapidsharelink,#HTTP_METHOD_GET)
HTTPSendHeader(*Headerbuffer,qconid)
HTTPGetHeader(qconid)
Debug HTTP.ResponseHeader(0)\ResponseCode
If HTTP.ResponseHeader(0)\ResponseCode = "200 OK"
Else
PrintN("Response Error")
Input()
End
EndIf
sRapidshareresponse = ReadnetworkString(qconid,0)
sRapidsharelink = Midstring(sRapidshareresponse,"<form id="+Chr(34)+"ff"+Chr(34)+" action="+Chr(34),Chr(34)+" method="+Chr(34)+"post"+Chr(34)+">")
PrintN("Request Free Download.")
PrintN(sRapidsharelink)
sfilename = GetFilePart(GetURLPart(sRapidsharelink,#PB_URL_Path))
surlpath = GetPathPart(sRapidsharelink)
qconid = OpenNetworkConnection(GetURLPart(sRapidsharelink,#PB_URL_Site),80)
HTTPCreateHeader(*Headerbuffer,sRapidsharelink,#HTTP_METHOD_POST,"dl.start=Free","","http://rapidshare.com/files/115327692/SpeedportReconnect.tar.gz")
HTTPSendHeader(*headerbuffer,qconid)
HTTPGetHeader(qconid)
If HTTP.ResponseHeader(0)\ResponseCode = "200 OK"
Else
PrintN("Response Error")
Input()
End
EndIf
sRapidshareresponse = ReadnetworkString(qconid,0)
sRSSESSION = midstring(sRapidshareresponse,GetPathPart(GetURLPart(sRapidsharelink,#PB_URL_Path)),"/"+GetFilePart(sRapidsharelink))
qWaitime = Val(midstring(sRapidshareresponse,"var c=",";"))
Print("Wating for " + Str(qWaitime) + " seconds.")
timer = CreateThread(@mytimer(),qWaitime)
While IsThread(timer)
Print("."):Delay(100)
Wend
PrintN("")
PrintN("Request Download of " + GetFilePart(GetURLPart(sRapidsharelink,#PB_URL_Path)))
sRapidsharelink = "http://rs644dt.rapidshare.com/"+GetURLPart(sRapidsharelink,#PB_URL_Path)
qconid = OpenNetworkConnection("rs644dt.rapidshare.com",80)
sRapidsharelink = "http://rs644dt.rapidshare.com/"+RemoveString(surlpath +sRSSESSION+"/"+sfilename,"http://rapidshare.com")
PrintN(sRapidsharelink)
; ab hier baustelle - fehlt parsen des passenden endlinks HTTPCreateHeader(*Headerbuffer,sRapidsharelink,#HTTP_METHOD_POST,"mirror=on&x=35&y=47","","http://rs644.rapidshare.com/files/213909812/xxxxxxxxxxxxxxxxx")
HTTPSendHeader(*headerbuffer,qconid)
HTTPGetHeader(qconid)
HTTPFileDownload(qconid,"/home/bert/Source/",Sfilename,1000)
Input()

mfg[/quote]
edit:ups grad gesehn da habe ich noch ned ganz fertig. der server rs644 muss natürlich passend zum file ausm quelltext geparst werden.