Hi. The priority on the ticket is set to Low on the ticket. Am
finding the httpclient in iOS for most part unusable and in a
deteriorating state. Not quite sure where to go with this as months
are going by. I can send and receive json but in only the most
basic way and it is virtually useless for my apps since
authentication and transport are handicapped by issues that are
stacking up (as long as seven months)
Standard authentication schemes, setting request headers,
getting response headers and this passing credentials in url are
basic things you need to get done in a client lib. Despite setting
up a decent generic method for handling http, it is not my code but
the client that is broken, regresses and remains this way. To
summarize the issues in iOS:
- you cannot set user and password due to this specific issue
#2149 Oct
- problem with this in callbacks for XHR issue #519 since
Mar
- problems with header parsing and responseData in onerror
handler issue #1502 Aug and workaround no longer works on
trunk
- setRequestHeaders are broken again on nightly 1.5.0 that I
obtained yesterday. This has been an ongoing regression #1983 and
prior to that
- my JSON data is now generating parse errors from recent nightly
build since and assuming response data is XML. And why wouldn't it
- you are unable to set an Accept header or Content-Type header so
the client is no longer aware it is getting JSON. So the parser
still parses but emits an error. From all indications, this began
showing up approximately two weeks ago. Folks have been discussing
in Q & A but looks like they gave up.
A common thing to want to do with titianium is to interact with
a web service and has become increasingly frustrating since even
basic authentication cannot be accomplished without setting
authorization headers or passing credentials in a url, and JSON
cannot be transported without errors in or in a secure way. I am
sure you can get a sense that this is impossible to work with.
Can you advise whether you employ any unit testing on your side
to see such things before they are reported? This is second time
round for discussing headers for me and there is no doubt others
are not finding lighthouse to report the trouble. I believe this is
at least a second or third regression setting request headers.
If these things cannot be fixed, perhaps replacing with
something better is a reasonable option. I have attached a link for
a reliable general purpose http and REST lib used in many
successful iPhone projects and which includes unit tests. Please
forward this to someone on the iPhone team to examine for potential
wrapping. If things do not improve, I will be looking to wrap some
of this generic functionality.
http://allseeing-i.com/ASIHTTPRequest/">http://allseeing-i.com/ASIHTTPRequest/