Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Logowanie przez PHP na inną strone WWW
dram
post
Post #1





Grupa: Zarejestrowani
Postów: 80
Pomógł: 0
Dołączył: 15.10.2011

Ostrzeżenie: (0%)
-----


Witam. https://store.steampowered.com/login/?snr=1_4_4__11

Chciałbym się zalogować tutaj aby potem wykonywać określone czynności skryptem(będę wysłał zaproszenie). Prosiłbym o jakieś wskazówki tak abym mógł się zalogować na stronę.
Nie mam zielonego pojęcia jak się za to zabrać, wujek (google) milczy w tych sprawach
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
dram
post
Post #2





Grupa: Zarejestrowani
Postów: 80
Pomógł: 0
Dołączył: 15.10.2011

Ostrzeżenie: (0%)
-----


Up@ twój kod:
  1. $zrodlo_ssl = getcwd() . "/store.steampowered.crt";
  2. $ch = curl_init('https://store.steampowered.com/login/');
  3. curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields);
  4. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
  5. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
  6. curl_setopt($ch, CURLOPT_CAINFO, $zrodlo_ssl);
  7. curl_exec($ch);
  8. echo($ch); // taki maly lolz ;]
  9. curl_close($ch);


Daje na stronie:
  1. Resource id #1
Go to the top of the page
+Quote Post
Alson
post
Post #3





Grupa: Zarejestrowani
Postów: 11
Pomógł: 1
Dołączył: 10.03.2010
Skąd: Gniezno

Ostrzeżenie: (0%)
-----


Cytat(dram @ 2.11.2011, 23:01:23 ) *
Up@ twój kod:
  1. $zrodlo_ssl = getcwd() . "/store.steampowered.crt";
  2. $ch = curl_init('https://store.steampowered.com/login/');
  3. curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields);
  4. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
  5. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
  6. curl_setopt($ch, CURLOPT_CAINFO, $zrodlo_ssl);
  7. curl_exec($ch);
  8. echo($ch); // taki maly lolz ;]
  9. curl_close($ch);


Daje na stronie:
  1. Resource id #1


Do daj

  1. $zrodlo_ssl = getcwd() . "/store.steampowered.crt";
  2. $ch = curl_init('https://store.steampowered.com/login/');
  3. curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields);
  4. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
  5. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
  6. curl_setopt($ch, CURLOPT_CAINFO, $zrodlo_ssl);
  7. curl_exec($ch);
  8. print_r($ch); // taki maly lolz ;]
  9. curl_close($ch);


powinno coś wyświetlić.

Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 11.10.2025 - 09:33