Hi everybody, I'm having some trouble with sandbox and live payment. although my code seems correct I receive this error: "Received an unexpected EOF or 0 bytes from the transport stream." i report down here my code //Post back to either sandbox or live string strSandbox = "https://www.sandbox.paypal.com/cgi-bin/webscr"; string strLive = "https://www.paypal.com/cgi-bin/webscr"; HttpWebRequest req = (HttpWebRequest)WebRequest.Create(strSandbox); req.Method = "POST"; req.ContentType = "application/x-www-form-urlencoded"; byte[] Param = this.Request.BinaryRead(this.Request.ContentLength); string strRequest = Encoding.ASCII.GetString(Param); strRequest = strRequest + "&cmd=_notify-validate"; req.ContentLength = strRequest.Length; //Send the request to PayPal and get the response Stream streamTMP = req.GetRequestStream(); // HERE IS WHERE I RECEIVE THE ERROR StreamWriter streamOut = new StreamWriter(req.GetRequestStream(), System.Text.Encoding.ASCII); streamOut.Write(strRequest); streamOut.Close(); StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream()); string strResponse = streamIn.ReadToEnd(); streamIn.Close(); Can anybody help me? Is there any problem with sandbox? Because this exact code was working only a week ago. Thanks in advance
... View more