Re: iOS https request via cellular?

2019-03-22 Thread Jens Alfke


> On Mar 21, 2019, at 6:45 AM, Howard Shere  
> wrote:
> 
> I only need a few simple requests. I should be able to find the right 
> interface, bind to a socket and send my requests that way

One tip on the protocol-level stuff: CFHTTPMessage is your friend. You can use 
it to generate the request, and also to parse the response.

—Jens ___
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list  (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: iOS https request via cellular?

2019-03-21 Thread Quinn "The Eskimo!"

On 21 Mar 2019, at 13:45, Howard Shere  wrote:

> I will file an enhancement request.

Thanks.

> But that won’t happen for a while …

Agreed.

> I only need a few simple requests. I should be able to find the right 
> interface, bind to a socket and send my requests that way…

Correct.  I’ve done this before and it works just fine.  My main piece of 
advice is that it’s much better if you use Network framework for this.  You run 
into two problems doing this with BSD Sockets:

* You have to do the DNS resolution and connect as separate steps, and it’s 
hard to that properly in the general case.

* You have to reliably identify the WWAN interface, and there’s no supported 
way to do that on iOS.

With Network framework you can use connect-by-name support while explicitly 
requiring WWAN.

Share and Enjoy
--
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


 ___
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list  (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: iOS https request via cellular?

2019-03-21 Thread Howard Shere

I will file an enhancement request.

But that won’t happen for a while and my code is happening now.

I only need a few simple requests. I should be able to find the right 
interface, bind to a socket and send my requests that way…unless there is 
something I don’t know which would stop that from working.


On Mar 20, 2019, at 3:26 PM, Quinn The Eskimo! 
mailto:eski...@apple.com>> wrote:

CAUTION: This email originated from outside of Synchronoss.


On 20 Mar 2019, at 20:08, Howard Shere 
mailto:howard.sh...@synchronoss.com>> wrote:

I am working on something for a cellular carrier...

Fair enough.  My recommendation here is that you file an enhancement request 
for this feature, explaining why your HTTP request needs to run over WWAN.



Please post your bug number, just for the record.

There really isn’t a great workaround here.  If you only need to deal with very 
simple requests, you can build a bone-headed HTTP 1.1 client on top of Network 
framework (or other, older APIs), which lets your force WWAN.  If you need a 
full-featured HTTP client, the only option I can see is to write (or acquire) 
your own HTTP library )-:

Share and Enjoy
--
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


___
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list  
(Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/howard.shere%40synchronoss.com

This email sent to howard.sh...@synchronoss.com

Howard Shere | Software Sculptor
Desk: +1 CAL.LMO.BILE | Mobile: +1 901.359.4200
howard.sh...@synchronoss.com
www.synchronoss.com

 ___
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list  (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: iOS https request via cellular?

2019-03-20 Thread Quinn "The Eskimo!"

On 20 Mar 2019, at 20:08, Howard Shere  wrote:

> I am working on something for a cellular carrier...

Fair enough.  My recommendation here is that you file an enhancement request 
for this feature, explaining why your HTTP request needs to run over WWAN.



Please post your bug number, just for the record.

There really isn’t a great workaround here.  If you only need to deal with very 
simple requests, you can build a bone-headed HTTP 1.1 client on top of Network 
framework (or other, older APIs), which lets your force WWAN.  If you need a 
full-featured HTTP client, the only option I can see is to write (or acquire) 
your own HTTP library )-:

Share and Enjoy
--
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


 ___
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list  (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: iOS https request via cellular?

2019-03-20 Thread Howard Shere

I am working on something for a cellular carrier...


On Mar 20, 2019, at 3:04 PM, Quinn The Eskimo! 
mailto:eski...@apple.com>> wrote:

CAUTION: This email originated from outside of Synchronoss.


On 20 Mar 2019, at 14:25, Howard Shere 
mailto:howard.sh...@synchronoss.com>> wrote:

I was hoping for a way to use URLRequest to do this

Not at the `NSURLSession` level.

Why do you need this?  I’ve seen requests like this before, and I’m curious 
whether your use case is the same as the others I’ve seen (most commonly it’s 
for folks working for or with a cellular carrier, who need to make sure the 
request goes out over WWAN as part of some sort of authentication mechanism).

Share and Enjoy
--
Quinn "The Eskimo!"
>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


___
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list  
(Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://office365.us.vadesecure.com/safeproxy/2/dmVyc2lvbjoyfG1lc3NhZ2VJRDpBQU1rQUdOa1pqTTBNREV6TFdVd09UY3ROR0kwWlMwNFl6UmtMVE14WmprMU9EQTJaV1JqTkFCR0FBQUFBQUNQVGpzN0dLa0lRYUJjempzWnhxWGdCd0RaM0llVVk3RTJRb1ZEdFh1SGFLSVpBQUFBQUFFTkFBRFozSWVVWTdFMlFvVkR0WHVIYUtJWkFBVU1Qb3pQQUFBPXxlbWFpbEZyb206bWFjbmV0d29ya3Byb2ctYm91bmNlcytob3dhcmQuc2hlcmU9c3luY2hyb25vc3MuY29tQGxpc3RzLmFwcGxlLmNvbXxlbWFpbFRvOkhvd2FyZC5TaGVyZUBzeW5jaHJvbm9zcy5jb218bG9naW46NzAwM2EwODMtMDA3OC00OTFhLWIwYzYtMTJiMzczM2I2MTIxfGNsaWVudFR5cGU6b2ZmaWNl/lists.apple.com/mailman/options/macnetworkprog/howard.shere%40synchronoss.com

This email sent to 
howard.sh...@synchronoss.com

Howard Shere | Software Sculptor
Desk: +1 CAL.LMO.BILE | Mobile: +1 901.359.4200
howard.sh...@synchronoss.com
www.synchronoss.com

 ___
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list  (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: iOS https request via cellular?

2019-03-20 Thread Quinn "The Eskimo!"

On 20 Mar 2019, at 14:25, Howard Shere  wrote:

> I was hoping for a way to use URLRequest to do this

Not at the `NSURLSession` level.

Why do you need this?  I’ve seen requests like this before, and I’m curious 
whether your use case is the same as the others I’ve seen (most commonly it’s 
for folks working for or with a cellular carrier, who need to make sure the 
request goes out over WWAN as part of some sort of authentication mechanism).

Share and Enjoy
--
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


 ___
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list  (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com