Autor Beitrag
Wolle92
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Do 13.11.08 15:12 
Hallo,

ich wollte fragen, ob es möglich ist, von Rapidshare-Servern die CRC32-Checksumme (oder sonstwas) für eine Datei anzufordern, um zu kontrollieren, ob die Dateien wirklich richtig hochgeladen wurden...

Hintergrund: Der ein oder andere hat Probleme damit, meine hochgeladenen RAR-Archive zu entpacken, weil das Passwort nicht funktioniert, da ich die Dateien, die ich lokal haben, und die ich hochgeladen habe problemlos entpacken kann, wollte ich Checksummen vergleichen...

Danke schonmal,

Grüße,
Wolle

_________________
1405006117752879898543142606244511569936384000000000.
Volle
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 19



BeitragVerfasst: Do 13.11.08 16:13 
Kannst ja mal schauen ob RS im HTTP Header nen MD5 wert mit ueberträgt. Falls die das nicht tun hast du, denke ich, schlechte karten ... ausser selbst nochmal runter zu laden und zu vergleichen
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 13.11.08 16:31 
aber frag doch mal bei RS an. Vielleicht ist das ja auch ein Feature, das die einbauen wollen, es aber noch nicht wissen :-D

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Wolle92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Do 13.11.08 16:32 
wie kann ich mir denn den ganzen HTTP-Header anschauen? Da is ja noch mehr drin, als nur Adresse, oder?

_________________
1405006117752879898543142606244511569936384000000000.
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Do 13.11.08 19:16 
Ganz kurze Antwort: mitsenden tun sie nix. Du kannst aber die Größe vergleichen, Datenfehler dürften im Grunde nicht auftreten.

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
Wolle92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Do 13.11.08 19:25 
kann ich denn die größe erfahren, ohne die Datei ganz runterzuladen?

_________________
1405006117752879898543142606244511569936384000000000.
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Do 13.11.08 19:46 
HEAD statt GET senden... wie genau, sagt dir die Doku zu deiner Lieblings-HTTP-Lib.

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 13.11.08 20:16 
user profile iconMartok hat folgendes geschrieben Zum zitierten Posting springen:
HEAD statt GET senden...

Das dürfte bei Rapid Share aber nicht so einfach so eine Portal Seite schalten. Du bekommst dann höchstens die Größe dieser Seite.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Do 13.11.08 20:29 
Naja... kann man alles automatisieren. Und als Bezahlkunde muss man nicht mal warten ;)

Die Idee mit dem Feature-Request ist aber nicht schlecht. Einfach mal machen ;)

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 13.11.08 22:51 
Moin!

nimm den md5-Hash als Dateinamen... :idea: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Volle
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 19



BeitragVerfasst: Fr 14.11.08 07:40 
das wuerde ja mal so ca garnichts bringen :>

er will ja irgend nen hash von der auf der RS festplatte gespeicherten datei haben.
Sprich:
datei hoch laden -> checksumme von RS berechnen lassen -> checksumme abfragen -> checksumme lokal berechnen -> vergleichen

Das mit der Dateigrösse is ne möglichkeit ... wobei ich, imho schon oefters was heruntergeladen habe und die grösse hatte gepasst ... nur eben der hash nicht ...

weis nich ob dass effizient is ... man koennte es aber ma ausprobieren ...
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Fr 14.11.08 19:16 
Moin!

user profile iconVolle hat folgendes geschrieben Zum zitierten Posting springen:
das wuerde ja mal so ca garnichts bringen :>
Das sehe ich nicht so. ;)

user profile iconVolle hat folgendes geschrieben Zum zitierten Posting springen:
er will ja irgend nen hash von der auf der RS festplatte gespeicherten datei haben.
Genau, und zwar von einer, die er selbst hochgeladen hat. Also so:
ausblenden Quelltext
1:
2:
User A             RS                User B
md5(Datei/up) --> Lager --> md5(Datei/down)
Wenn nun die Hashes nicht stimmen, dann ist die Datei nicht korrekt übertragen worden. Speicherplatz für den md5-Hash muss natürlich ausserhalb der Daten sein -> Dateiname. :idea: :D

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Hendi48
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 271



BeitragVerfasst: Fr 14.11.08 20:04 
Hallo,

an diesem Perl Beispiel kannst du sehen, wie man die RS API benutzt. Diese gibt dir unter anderem nach dem Upload die MD5-Checksumme der hochgeladen Datei zurück.
Ich hoffe das hilft dir.

Gruß,
Hendi