Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [cURL] CURLOPT_FOLLOWLOCATION błąd
jwitos
post
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 8.01.2009

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


Mam taki kod:

http://pastebin.ca/1491619

Niestety, dostaję od niego tylko pustą stronę i komunikat:

Cytat
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /virtual/pl/edu/nowamatura/dump/index.php on line 9




safe_mode mam wyłączony

Ten post edytował jwitos 11.07.2009, 12:39:17
Go to the top of the page
+Quote Post
R4D3K
post
Post #2





Grupa: Zarejestrowani
Postów: 144
Pomógł: 12
Dołączył: 16.03.2007

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


A słyszałeś o live HTTP headers ?
Nie mam tam konta, ale spójrz co ten plugin mi pokazuje:
Kod
http://www.zieloneimperium.pl/login.php?t

GET /login.php?t HTTP/1.1
Host: www.zieloneimperium.pl
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; pl; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: pl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-2,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: ref=gowpl

HTTP/1.x 200 OK
Date: Sat, 11 Jul 2009 11:54:13 GMT
Server: Apache/1.3 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.8f AuthPG/1.3 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.8
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html
----------------------------------------------------------
http://www.zieloneimperium.pl/css.php

GET /css.php HTTP/1.1
Host: www.zieloneimperium.pl
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; pl; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
Accept: text/css,*/*;q=0.1
Accept-Language: pl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-2,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.zieloneimperium.pl/login.php?t
Cookie: ref=gowpl
Cache-Control: max-age=0


Ustaw odpowiedni refer i sprawdź co dokładnie jest przesyłane w momencie logowania
Go to the top of the page
+Quote Post
jwitos
post
Post #3





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 8.01.2009

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


Tak, mam, wykorzystałem go właśnie, żeby sprawdzić wszystko przesyłane w formularzu. I to wszystko wrzuciłem.
Go to the top of the page
+Quote Post
kipero
post
Post #4





Grupa: Zarejestrowani
Postów: 233
Pomógł: 50
Dołączył: 28.10.2006
Skąd: Radom

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


Cytat(jwitos @ 11.07.2009, 13:38:42 ) *
safe_mode mam wyłączony

A open_basedir?
Go to the top of the page
+Quote Post
jwitos
post
Post #5





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 8.01.2009

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


Też.
open_basedir i safe_mode = "OFF"
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 16.09.2025 - 04:37