title: paypal - on success - redirect is not working
body: <p>I created a sandbox paypal account and used IPNListener from tutorial <a href="http://www.micahcarrick.com/paypal-ipn-with-php.html" rel="nofollow">http://www.micahcarrick.com/paypal-ipn-with-php.html</a> . In my code, after the verifying paypal response, trying to redirect to a dynamic url. After successful payment in paypal, it is not redirecting to the dynamic url</p>
  
  <pre><code>    include('ipnlistener.php');
      $listener = new IpnListener();
      $listener-&gt;use_sandbox = true;
      $listener-&gt;use_ssl = false;
  
      try {
          $listener-&gt;requirePostMethod();
          $verified = $listener-&gt;processIpn();
       } catch (Exception $e) {
       error_log($e-&gt;getMessage());
       exit(0);
       }
      $url1="http://www.google.com";
      $url2="http://www.ayond.se";
       if ($verified) {
        header('Location: '.$url1);
       }
       else
       {
             header('Location: '.$url2);
        }
  </code></pre>