iOS class to communicate with my web server
$30-60 USD
Paid on delivery
I need a class that will communicate with my server and will retrieve data from it.
The request is web based, you will need to specify four parameters in the request:
1. Version ID (there will be two possible values)
2. URL data, this is the data I want back.
3. Seed value, this is a randomly generated GUID
4. Hash, this is a computation based on the GUID using MD5 (very simple)
The reply will be one text line in the form of:
String1~String2
So you need to seperate the two strings and return them to me.
Also there's a possibilty the server will close the connection because of an error, so I need to know if
there was an error and why, there will be two possible errors: 1. Could not connet, 2. Server closed after
connect
When I create the class I will specify a server to use, the version and UserID (is used in the MD5
calculations), I need a function that I'll be able to change the server for all new connections.
When I generate a request I will specify the URL I want info for.
Example:
suppose I want to get info about [url removed, login to view] the request will look like:
<[url removed, login to view]>
Reply will be for example:
FM~1,2,3
Project ID: #3667307