1

I have iOS8 swift application which communicate to web service URL. However, I do not like to have access to my web service from device that is not mobile device. How can I achive this using iOS8 swift application. In fact I need HTTP header, that have device-specific information using NSURLConnection.

1

1 Answer 1

1

Make sure you create a NSMutableURLRequest and then use the method:

request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.