Jump to content

aabid

Members
  • Posts

    86
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

aabid's Achievements

Member

Member (2/5)

0

Reputation

  1. No am not into that and it would be impossible to guess it correctly, by catching captcha image I meant that I will use decaptha service but to use we need to have that captcha image that will be sent to there api and they will solve that and return the correct code. Everything is good except that image part, I can't fetch that image because its inside an flash application,any help would be appreciated.
  2. Am making a bot in PHP which sends some automatic requests to some specific servers and once in a while a server puts a recaptcha challenge which is messing up things for my bot. Since we know PHP doesn't uses browser for requests, so was thinking is there anyway to catch captcha ???? Note: If it were a static page then I could have done this easily but the problem is its under swf online game. so source code is also not visible to catch the image.
  3. AM tired with this thing now, can't devise a solution for this. I don't know why the proxy is refusing connection when am trying that with my script. I asked from my proxy provider how to curl and he simply sent me PHP code which was almost same as of mine with no help. I also sent a basic base64 of my username:password in a header to make it authorized still its refusing connections. Please help me guys.....
  4. I don't know what authorization means but in my knowledge it is providing valid username and password I assume and am providing that. Beside that I've also tried to both include and remove following line, curl_setopt($ch, CURLOPT_PROXYAUTH, 'CURLPROXY_BASIC'); curl_setopt($ch, CURLOPT_PROXYTYPE, 'CURLAUTH_BASIC'); yet also nothing works and it shows the same. What I noticed though is when I comment out the line containing CURLOPT_PROXYUSERPWD, still the error remains same or atleast it looks same in browser output. Might be because of that but am not sure....
  5. but when am using that through my firefox it works and I can surf easily but why not in PHP script ??? I know for sure that its a anonymous proxy...Do I need more information than that ?
  6. Ya cURL is active in php.ini function and also its working when am not using proxies so no question about that. However how would I know whether its a HTTP proxy or not ? All I know is 3 type of proxies public, private and anonymous. I know for sure that the one am using is anonymous proxy. Would it be a problem ?
  7. Not even a single reply C'mon guys where are the guru's of this awesome community
  8. It is removing the double quote from the right of the string so that you only left with the number you want after Goober.
  9. Hey Guys, Am developing a script which will send a request to a server through PHP's CURL using proxy, but I don't know why requests are not passing through whenever I use use proxy option of CURL. And when I remove that proxies everything works fine, Here is the code, function getit($url, $start, $msg = "") { $ch = curl_init(); curl_setopt($ch, CURLOPT_USERAGENT, "User-Agent: Mozilla/5.0 (SymbianOS/9.1; U; [en-us]) AppleWebKit/413 (KHTML, like Gecko) Safari/413"); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 0); curl_setopt($ch, CURLOPT_PROXY, $this->proxy); curl_setopt($ch, CURLOPT_PROXYUSERPWD, 'user:pass'); curl_setopt($ch, CURLOPT_PROXYAUTH, 'CURLPROXY_BASIC'); curl_setopt($ch, CURLOPT_PROXYTYPE, 'CURLAUTH_BASIC'); if(!$start) { curl_setopt($ch, CURLOPT_POST, TRUE); } curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_AUTOREFERER, true); curl_setopt($ch, CURLOPT_ENCODING, "" ); if($msg) { $msg = str_replace(" ", "+", $msg); $msg = "msg=".$msg."&".$this->unique; curl_setopt($ch, CURLOPT_POSTFIELDS, $msg); } else { if(!$start) { curl_setopt($ch, CURLOPT_POSTFIELDS, $this->unique); } } curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*")); $this->content = curl_exec($ch); if(!$this->content) { echo "Requests are not passing through\n"; echo "Error ".curl_error($ch)."\n"; } return $this->content; } I've searched and tried everything but still not working, please help me to get rid of it
  10. Well the problem seems to be sorted out and it was just a silly mistake of capitalization, I was kinda doing like if (Lecturer == lecturer) then do this Its obvious it won't go into the if block because of the capitalization of first word, But anyways the problem seems to be gone now thanks for the support
  11. I have tried to echo out every thing, even I echoed both $_POST and $row and both seem to be containing the correct information as far as seeing from naked eye is concerned. Now I don't know if there might be any hidden spaces which are not making them equivalent to pass that if condition.
  12. Hey guys, I don't know why but the following script is not working for me. Its a simple login script which check the validity of username and password and based on the uses header function to redirect the user. Please have a look at the script <?php include('dbinfo.inc'); if(empty($_POST['username']) || empty($_POST['pword'])) { header('Location: http://localhost/vits/index.php?login=error'); } else { $username = $_POST['username']; $pword = $_POST['pword']; $actype = $_POST['actype']; $connect = mysql_connect($host,$dbuser,$password) or die("Cannot connect to DB"); mysql_select_db($dbname,$connect); $sql = "select * from memberinfo where username='$username'"; $result = mysql_query($sql,$connect); $row = mysql_fetch_assoc($result); } if($row['username'] == $username && $row['pword'] == $pword && $row['actype'] == $actype) { session_start(); $_SESSION['username'] = $_POST['username']; $_SESSION['loggedin'] = TRUE; $_SESSION['actype'] = $_POST['actype']; header('Location: http://localhost/vits/index.php?login=correct'); } else { header('Location: http://localhost/vits/index.php?login=incorrect'); } ?> Now the problem is it never succeeds i.e. it never goes into the if block where the checking is being done for username and password and of course actype. No matter what I enter in login information it always throws me to this http://localhost/vits/index.php?login=incorrect' Please help as am not able to sort out this problem
  13. not able to get it yet also, searched but not found anything which clear my doubts
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.