I tried to post my textFiled data to Server.but when posting I got this error:
Error: Error Domain=kCFErrorDomainCFNetwork Code=303 \"The operation co
kCFErrorHTTPParseFailure = 303,
The HTTP server response could not be parsed.
From https://developer.apple.com/documentation/cfnetwork/cfnetworkerrors/kcferrorhttpparsefailure
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