• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Pass an htttpbody on a GET request with NSURLRequest
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pass an htttpbody on a GET request with NSURLRequest


  • Subject: Re: Pass an htttpbody on a GET request with NSURLRequest
  • From: Antonio Nunes <email@hidden>
  • Date: Tue, 07 Jul 2015 07:47:03 +0100

It does. It’s all working with the POST version.

Thanks,
António

> On 06 Jul 2015, at 20:53, Rick Mann <email@hidden> wrote:
>
> Have you tried sniffing a POST version of the call to ensure it sends the body as you'd expect?
>
>> On Jul 6, 2015, at 00:02 , Antonio Nunes <email@hidden> wrote:
>>
>>
>>> On 06 Jul 2015, at 01:36, Jens Alfke <email@hidden> wrote:
>>>
>>>
>>>> On Jul 5, 2015, at 3:21 PM, Antonio Nunes <email@hidden> wrote:
>>>>
>>>> As you can see, the content body is not there.
>>>
>>> Yes, but since the server abruptly closed the socket, it might be that the NSURLSession didn’t get a chance to send the body. The fact that it included a Content-Length: 122 header tells me that it _intended_ to send the body — if it had decided that “I never send a body in a GET”, it would have left the Content-Length at zero.
>>>
>>> My guess is that some innocuous difference in the request triggered a bug on the server side and caused the servlet or PHP script or whatever to throw an exception. It’s definitely not a valid response for the server to close the socket like that — in my experience it only happens if there’s a serious unhandled error on the server. Frankly, this seems a likely explanation, assuming that the server developers’ coding skills are on par with their API design skills.
>>
>> Haha. You know, I haven’t worked enough with them to be able to gauge that. ;-)
>>
>> Anyway, you’re probably right, and I just received a message that they will make the call available through a POST request, so let’s hope that will serve to work around the issue.
>>
>> Thanks for all your help.
>>
>> -António
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Macnetworkprog mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
>
> --
> Rick Mann
> email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Pass an htttpbody on a GET request with NSURLRequest (From: Antonio Nunes <email@hidden>)
 >Re: Pass an htttpbody on a GET request with NSURLRequest (From: Avi Drissman <email@hidden>)
 >Re: Pass an htttpbody on a GET request with NSURLRequest (From: Antonio Nunes <email@hidden>)
 >Re: Pass an htttpbody on a GET request with NSURLRequest (From: Jens Alfke <email@hidden>)
 >Re: Pass an htttpbody on a GET request with NSURLRequest (From: Antonio Nunes <email@hidden>)
 >Re: Pass an htttpbody on a GET request with NSURLRequest (From: Jens Alfke <email@hidden>)
 >Re: Pass an htttpbody on a GET request with NSURLRequest (From: Antonio Nunes <email@hidden>)
 >Re: Pass an htttpbody on a GET request with NSURLRequest (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Pass an htttpbody on a GET request with NSURLRequest
  • Next by Date: RE: How to get SimpleTunnel sample code
  • Previous by thread: Re: Pass an htttpbody on a GET request with NSURLRequest
  • Next by thread: Re: Pass an htttpbody on a GET request with NSURLRequest
  • Index(es):
    • Date
    • Thread