No, Foundation does not use libcurl. And there's no reason to bundle a large
3rd party library just because the OP is having some initial trouble getting
one Foundation networking call to work. That's like switching to Qt because you
have trouble with an NSButton :-p
—Jens
> On Jul 4, 2015, a
On 04 Jul 2015, at 22:03, Jens Alfke wrote:
>
> (Sending a GET request with a body is pretty unusual, but I assume that’s
> what the server wants since you say the curl command works…)
Yes, I’m not happy about this, and I think this is also what is causing the
issue, since it looks like the bo
> On 05 Jul 2015, at 00:45, Michael David Crawford wrote:
>
> Would it work to use libcurl instead?
>
> I dont know but would be unsurprised were that to be what NSURLRequest
> actually does.
Probably, but this is on iOS, so I would have to package a libcurl build into
the app, adding a few MB
Ugh, I’ve corrected the headers. But it doesn’t make a difference regarding the
result.
-António
> On 04 Jul 2015, at 19:04, Rick Mann wrote:
>
> FWIW, you're setting the Accept header, not Content-Type (nor
> Accept-Language).
>
>> On Jul 4, 2015, at 02:52 , Antonio Nunes wrote:
>>
>> I h
Thanks for the pointer to macnetworkprog Jerry, and for the link to Charles. I
should probably have mentioned in my post that this is an iOS app, not a Mac
app. Would that matter for macnetworkprog, or is the list appropriate for iOS
too?
António
> On 04 Jul 2015, at 13:59, Jerry Krinock wrot
Would it work to use libcurl instead?
I dont know but would be unsurprised were that to be what NSURLRequest
actually does.
--
Michael David Crawford, Consulting Software Engineer
mdcrawf...@gmail.com
http://www.warplife.com/mdc/
Available for Software Development in the Portland, Oregon Me
> On Jul 4, 2015, at 11:04 AM, Rick Mann wrote:
>
> FWIW, you're setting the Accept header, not Content-Type (nor
> Accept-Language).
Yup. And I’m pretty sure you [the OP] don’t want to add that Accept header to
all requests, since it’s telling the server to give up (with a 406 status) if
th
FWIW, you're setting the Accept header, not Content-Type (nor Accept-Language).
> On Jul 4, 2015, at 02:52 , Antonio Nunes wrote:
>
> I have the following curl command to a web api, which retrieves some info:
> curl -X GET -H 'Authorization: Basic blabla' -H 'Content-Type:
> application/xml; ch
> On 2015 Jul 04, at 02:52, Antonio Nunes wrote:
>
> Is there a way to see exactly what the request looks like when it goes out?
Search for “OS X Packet Sniffer” and you will find many apps for this, and even
some stuff built into OS X, which are quite fun to use. My favorite (because
it can