• 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: Mon, 02 Dec 2013 11:24:35 +0800

Yes, It is standard authentication; the server that my App talked to is a router, most case for this App is in LAN side only; I can do digest calculation by my own code, but just wondering why the system API can’t work for me?

---
regards,
KC

Andreas Fink <email@hidden> 於 2013/12/2 上午10:21 寫道:

This looks like standard authentication method. Just the final POST is different as it would  open a new connection from the server to your App in which case your app is the HTTP server and "Server" is the http client. This wont work over network translation (NAT) and looks very odd. Normally the 200 OK return message would deliver the content to you.

Are you really sure that's the way it is supposed to be?
I have a small library doing the HTTP server part if you need it, contact me offline but I guess your setup is rather unusual if its really is what you describe here.

On 02.12.2013, at 02:12, Kevin Yu <email@hidden> wrote:

Hi Jens,

Thanks for your info. 
Currently, I’m working on an application which needs to act as server and client role in the same time; The traffic flow like:

MyApp                      Server
——- GET——----------->
<——Challenge ——-----
——— GET/with auth—>
<——  200 OK ————
<——  POST —————
…

This is the reason that I can not use NSURLConnection, can I?

The strange thing to me is the NSURLConnection can work for the same server.

---
regards,
KC
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>)

  • Prev by Date: Re: CFHTTPMessageAddAuthentication problem
  • Next by Date: Re: CFHTTPMessageAddAuthentication problem
  • Previous by thread: Re: CFHTTPMessageAddAuthentication problem
  • Next by thread: Re: CFHTTPMessageAddAuthentication problem
  • Index(es):
    • Date
    • Thread