Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> curl odwzorowanie shell na php
koneser69
post 2.02.2011, 14:27:30
Post #1





Grupa: Zarejestrowani
Postów: 45
Pomógł: 0
Dołączył: 18.11.2008

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


Witam

Szukałem wszędzie i nie mogę znaleźć

polecenie z konsoli które pobiera tylko nagłówek pliku
curl -sI $url

z jak to samo zrobić z php tzn jakie opcje ustawić

$options = array(
CURLOP_HEADER = TREE
);

Go to the top of the page
+Quote Post
wookieb
post 2.02.2011, 14:30:01
Post #2





Grupa: Moderatorzy
Postów: 8 989
Pomógł: 1550
Dołączył: 8.08.2008
Skąd: Słupsk/Gdańsk




http://pl.php.net/curl_setopt
Kod
-s = CURLOPT_NOBODY na true


Kod
-I = CURLOPT_HEADER na true



--------------------
Go to the top of the page
+Quote Post
koneser69
post 3.02.2011, 07:20:40
Post #3





Grupa: Zarejestrowani
Postów: 45
Pomógł: 0
Dołączył: 18.11.2008

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


To jeszcze nie to odpowiedź serwera:
  1. HTTP/1.1 400 Bad Request
  2. Content-Type: text/html
  3. Content-Length: 349
  4. Connection: close
  5. Date: Thu, 03 Feb 2011 06:19:20 GMT
  6. Server: lighttpd/1.4.25
Go to the top of the page
+Quote Post

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 Wersja Lo-Fi Aktualny czas: 21.06.2025 - 23:11