• 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: CFHTTPMessageAddAuthentication problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFHTTPMessageAddAuthentication problem


  • Subject: Re: CFHTTPMessageAddAuthentication problem
  • From: Kevin Yu <email@hidden>
  • Date: Tue, 03 Dec 2013 08:35:35 +0800

Ha, this is a proprietary way to communicate between server and app, just use HTTP message to achieve the goal; I think it is similar to the concept of WebSocket (http://en.wikipedia.org/wiki/WebSocket) you can say it is worse but someone (not me) think it is advance. 

---
regards,
KC

Jens Alfke <email@hidden> 於 2013/12/3 上午12:48 寫道:


On Dec 2, 2013, at 1:21 AM, Kevin Yu <email@hidden> wrote:

I don’t think it will work; because after NSURLConnection complete authentication, the server use the same connection to send the POST

{scratching-record noise}

Wait, what? It can’t do that. That’s a complete violation of HTTP. You’re saying that the server sends back a response, and then immediately sends an HTTP request line over the same socket?! I’ve seen some weird misuses of HTTP, but this is even worse...

Sorry, I’m just having trouble believing this is real. Are you _sure_ you’re not misunderstanding how this server operates? What exactly is this thing you’re trying to connect to?

—Jens

 _______________________________________________
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: 
 >Re: CFHTTPMessageAddAuthentication problem (From: Kevin Yu <email@hidden>)
 >Re: CFHTTPMessageAddAuthentication problem (From: Jens Alfke <email@hidden>)
 >Re: CFHTTPMessageAddAuthentication problem (From: Kevin Yu <email@hidden>)
 >Re: CFHTTPMessageAddAuthentication problem (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: A NSOutputStream vs. native socket question
  • Next by Date: Re: CFHTTPMessageAddAuthentication problem
  • Previous by thread: Re: CFHTTPMessageAddAuthentication problem
  • Next by thread: Re: CFHTTPMessageAddAuthentication problem
  • Index(es):
    • Date
    • Thread