what is kCFErrorDomainCFNetwork Code=303

2020-01-26 11:04发布

I tried to post my textFiled data to Server.but when posting I got this error:

Error: Error Domain=kCFErrorDomainCFNetwork Code=303 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 303.)" UserInfo=0x13786c60 {NSErrorFailingURLKey=http://192.168.3.125:8090/SaveDollar/rest/deals/add, NSErrorFailingURLStringKey=http://192.168.3.125:8090/SaveDollar/rest/deals/add}

I do not understand this error.

2条回答
趁早两清
2楼-- · 2020-01-26 11:49

Is a parsing error from the server, when its response can't be parsed. You can look up the error codes in the CFNetworkErrors reference.

Make sure you set HTTPMethod to POST

查看更多
神经病院院长
3楼-- · 2020-01-26 12:05
kCFErrorHTTPParseFailure      = 303,

The HTTP server response could not be parsed.

From https://developer.apple.com/documentation/cfnetwork/cfnetworkerrors/kcferrorhttpparsefailure

查看更多
登录 后发表回答