Delphi-PRAXiS
Seite 1 von 2  1 2      

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi http://rapidshare.com/ - Collector's Zone - Zugriff (https://www.delphipraxis.net/93357-http-rapidshare-com-collectors-zone-zugriff.html)

Isaev 4. Jun 2007 21:16


http://rapidshare.com/ - Collector's Zone - Zugriff
 
Ich grüsse alle!

http://rapidshare.com/
Free-Zone / Collector's Zone betreten

Ich versuche den Zugriff zu meinem Ordner bekommen
Was mache ich falsch?

Delphi-Quellcode:
Procedure TForm1.Button1Click(Sender:TObject);
Var
  Data:TIdMultiPartFormDataStream;
Begin
  Data:=TIdMultiPartFormDataStream.Create;
  Try
    Data.AddFormField('username','*****');
    Data.AddFormField('password','*****');
    Memo1.Text:=IdHTTP1.Post('https://ssl.rapidshare.com/cgi-bin/collectorszone.cgi',Data);
  Finally
    Data.Free;
  End;
End;
.dfm
Delphi-Quellcode:
object IdHTTP1: TIdHTTP
    IOHandler = IdSSLIOHandlerSocket1
    MaxLineAction = maException
    ReadTimeout = 0
    AllowCookies = True
    ProxyParams.BasicAuthentication = False
    ProxyParams.ProxyPort = 0
    Request.ContentLength = -1
    Request.ContentRangeEnd = 0
    Request.ContentRangeStart = 0
    Request.ContentType = 'application/x-www-form-urlencoded'
    Request.Accept = 'text/html, */*'
    Request.BasicAuthentication = False
    Request.UserAgent = 'Mozilla/3.0 (compatible; Indy Library)'
    HTTPOptions = [hoForceEncodeParams]
    Left = 371
    Top = 6
  end
  object IdSSLIOHandlerSocket1: TIdSSLIOHandlerSocket
    SSLOptions.Method = sslvSSLv23
    SSLOptions.Mode = sslmClient
    SSLOptions.VerifyMode = []
    SSLOptions.VerifyDepth = 2
    Left = 336
    Top = 8
  end
Als Ergebnis bekomme ich eine Autorisationsseite... Warum?

Assertor 5. Jun 2007 19:59

Re: http://rapidshare.com/ - Collector's Zone - Zugriff
 
Vielleicht prüft RapidShare den UserAgent-String.

Setz doch mal den Default für IE 7 unter Vista: "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)"

Gruß winkel79

Isaev 5. Jun 2007 20:13

Re: http://rapidshare.com/ - Collector's Zone - Zugriff
 
Könnte sein...
aber so geht auch nicht :(

Vielleicht prüft RapidShare nicht 'username' & 'password' und braucht andere Parameters?
Aber woher kann man das wissen?

Dani 5. Jun 2007 20:47

Re: http://rapidshare.com/ - Collector's Zone - Zugriff
 
Schau dir doch den Seitenquelltext an oder speichere die Seite bei dir lokal und ändere den POST-Pfad auf eine lokale PHP Seite, die so aussehen könnte:
Code:
<?php
echo "<pre>";
print_r($_REQUEST);
echo "</pre>";
?>

GTA-Place 5. Jun 2007 21:00

Re: http://rapidshare.com/ - Collector's Zone - Zugriff
 
Zitat:

Zitat von Live HTTP Headers - Mitschnitt
https://ssl.rapidshare.com/cgi-bin/collectorszone.cgi

POST /cgi-bin/collectorszone.cgi HTTP/1.0
Host: ssl.rapidshare.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.12) Gecko/20070508 Firefox/1.5.0.12
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: https://ssl.rapidshare.com/cgi-bin/collectorszone.cgi
Content-Type: application/x-www-form-urlencoded
Content-Length: 37
username=Blup&password=Blop&german=on
HTTP/1.x 200 OK
P3P: CP="ALL DSP COR CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa CONa TELa OUR STP UNI NAV STA PRE"
Date: Tue, 05 Jun 2007 19:58:22 GMT
Connection: close
Accept-Ranges: bytes
Content-Type: text/html; charset=ISO-8859-1
Cache-Control: no-cache
Content-Length: 2626


Isaev 5. Jun 2007 21:15

Re: http://rapidshare.com/ - Collector's Zone - Zugriff
 
Respekt!!! :dp:

Es geht!!! :thumb:

Endlich!!! :hello:
:dance:

Isaev 5. Jun 2007 21:19

Re: http://rapidshare.com/ - Collector's Zone - Zugriff
 
Muss man einfach
Delphi-Quellcode:
  Data.AddFormField('german','on');
hinzufügen...

Vielen Dank!

Isaev 5. Jun 2007 21:27

Re: http://rapidshare.com/ - Collector's Zone - Zugriff
 
Kann man das Gleiche machen, aber ohne OpenSSL?

mkinzler 5. Jun 2007 21:29

Re: http://rapidshare.com/ - Collector's Zone - Zugriff
 
Nur wenn dies vom Provider angeboten wird. Oder meinst du mit einer anderen SSL-Bibliothek?

Isaev 5. Jun 2007 21:35

Re: http://rapidshare.com/ - Collector's Zone - Zugriff
 
Einfach diese Abhängigkeit von 'libeay32.dll' und 'ssleay32.dll' bringt ein wenig auf.


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:21 Uhr.
Seite 1 von 2  1 2      

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz