what is kCFErrorDomainCFNetwork Code=303

37,162

Solution 1

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

Solution 2

kCFErrorHTTPParseFailure      = 303,

The HTTP server response could not be parsed.

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

Share:
37,162
Admin
Author by

Admin

Updated on August 12, 2020

Comments

  • Admin
    Admin over 3 years

    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.

  • Admin
    Admin almost 10 years
    thanks for Relay i have given request method GET in Services
  • Danny S
    Danny S over 9 years
    If that fixed your problem can you accept the answer please? :)
  • dlw
    dlw over 8 years
    For all you Swift users, the link above does include the numeric codes, but only when you select "Objective-C" or "Both" as your language preference (top of web page).