• 19-10-2013, 05:56:44
    #1
    Asp.net ile kodlanmış bir siteye, php cURL ile giriş yapmaya çalışıyorum ancak. Site

    <!-- Web.Config Configuration File -->
    
    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>
    Hatasını veriyor.
    İsteği aşağıdaki gibi yapıyorum

    $post_data = 'Email=axtx@xyz.com&Sifre=123456&guvenlik=1';
    $curl = curl_init();curl_setopt($curl, CURLOPT_URL, "http://www.bursagb.com/giris.html");
    curl_setopt($curl, CURLOPT_HEADER, 1);
    curl_setopt($curl, CURLOPT_REFERER, "Googlebot/2.1 (+http://www.google.com/bot.html)" );
    curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0");
    curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
    curl_setopt($curl, CURLOPT_ENCODING, "");
    curl_setopt($curl, CURLOPT_COOKIEJAR, "dosya.txt");
    curl_setopt($curl, CURLOPT_COOKIEFILE, "dosya.txt");
    curl_setopt($curl, CURLOPT_VERBOSE, 1);
    curl_setopt($curl, CURLOPT_POST, true);
    curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);
    curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); 
    $veri = curl_exec($curl);
    echo $veri;
    curl_close($curl);
    yardımlarınızı bekliyorum
  • 19-10-2013, 22:39:13
    #2
    Reveloper
    /uyelik/giris.html üzerinden çekiyor baktığın site
  • 20-10-2013, 02:02:11
    #3
    Burti adlı üyeden alıntı: mesajı görüntüle
    /uyelik/giris.html üzerinden çekiyor baktığın site
    öylede aynı sorun var hocam ben örnek olarak koydum onu
  • 26-10-2013, 02:39:23
    #4
    problem halen devam ediyor, eksik veri gittiği için o hatayı veriyor ama ne eksik bilmiyoruz
  • 26-10-2013, 14:31:07
    #5
    Kimlik doğrulama veya yönetimden onay bekliyor.
    HACKHERS adlı üyeden alıntı: mesajı görüntüle
    problem halen devam ediyor, eksik veri gittiği için o hatayı veriyor ama ne eksik bilmiyoruz
    $post_data = 'GenelBilgiler.Value.Email=axtx@xyz.com&GenelBilgiler.Value.Sifre=123456&__RequestVerificationToken=xxx'; 
    curl_setopt($curl, CURLOPT_URL, "http://www.xxx.com/uyelik/giris.html");
    token'ı anlık olarak sayfadan alıp gondermelısın.firefoxa live http headers eklentisini yuklersen gondermen gerekenlerı kendın gorursun