简体   繁体   中英

Weird paypal api issue

I just started using the Paypal API and I'm stuck on this problem.

I generate a paypal request in code and when I send it I get back the following.

TIMESTAMP=2011-05-16T01:26:37Z
CORRELATIONID=6d4327d15421f
ACK=Failure
L_ERRORCODE0=10001
L_SHORTMESSAGE0=Internal Error
L_LONGMESSAGE0=Timeout processing request

When I run through the debugger and copy the generated request url and paste it into my web browser, I get a success response....

I'm sending the request like this - c#

 HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
 req.Method = "POST";
 req.ContentType = "application/x-www-form-urlencoded";
 WebResponse response = req.GetResponse();

The same request, but one sent by code, and one copied to the browser produces to different results. Why is that?

I got same problem. When remove the

request.Method ="POST";

line, problem is solved.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM