Q:

How to make post request without passing its value?

I'm having a POST Request like below codes.I'm not passing any body with it.But how to make this request dynamic it means it should accept any mobile number which i'have entered in my mobiletextfield not the specific one like 0123456789 
var request = URLRequest(url: URL(string: "myurl/register?mobileno=0123456789")!)
request.httpMethod = "POST"

A:

Let number to be value of mobile textfield:
var request = URLRequest(url: URL(string: "myurl/register?mobileno=\(number)")!)
request.httpMethod = "POST"

