POST CURL to https in iOS

I know it’s possible on Desktop using HTTPSecureSocket, but is and how is this possible in iOS? POST a curl form to an https:// url?

You mean post using HTTP with the data that a for might contain

http://developer.xojo.com/httpsocket
SetRequestContent(data As MemoryBlock, mimeType As Text)
Send - either Send(method As Text, URL As Text) or Send(method As Text, URL As Text, file As FolderItem)

Thanks Norman …

So if the curl format requested is this:

curl https://myserver.com/submit/ \\ -d id=abc \\ -d type=def \\ -d "redirect_uri=https://abc123.com/" \\ -d "select=process"

would this be the correct Xojo code?

[code]dim postData as Text

postData = “id=abc&type=def&”“redirect_uri=https://abc123.com/”"&"“select=process”"
Dim mData As MemoryBlock = TextEncoding.UTF8.ConvertTextToData(postData)
http = New MyHTTPSocket
http.currentView = Self
http.SetRequestContent(mData, “application/x-www-form-urlencoded”)
http.Send(“POST”, “https://myserver.com/submit/”)[/code]

Jonathan,

Did This work?

[code]dim postData as Text

postData = “id=abc&type=def&”“redirect_uri=https://abc123.com/”"&"“select=process”"
Dim mData As MemoryBlock = TextEncoding.UTF8.ConvertTextToData(postData)
http = New MyHTTPSocket
http.currentView = Self
http.SetRequestContent(mData, “application/x-www-form-urlencoded”)
h[/code]