RE: POST & GET Examples don't work behind a firewall?
RE: POST & GET Examples don't work behind a firewall?
- Subject: RE: POST & GET Examples don't work behind a firewall?
- From: Richard <email@hidden>
- Date: Wed, 16 Apr 2003 13:24:19 +1000
- Organization: Faraday R&D
I am using the URL Access Manager extensively now.
While in principle it can do the job, in practice it has more
bugs and undocumented behaviour than a dog has fleas.
E.g It has problems with setting the HTTP header correctly.
One problem is that in MacOS X (but not in MacOS 9) it does not set the
Content-Type for you when doing a POST. Be prepared to have TCPFlow
running when testing to see what it is actually sending.
There are another problems with setting headers
which I will explain if you beg and plead.
On top of that in asynchronous mode the states and state transitions
are not documented which means Apple can change things
and then your code won't work.
Examples of bad behaviour include
1. different state transitions depending on the type of error
even though there is only one error event.
2. Error codes sometimes not being set while inside the error event handler.
3. The databuffer returning nil even when inside the data available
event handler.
4. Abort returning an error and not aborting in some circumstances.
In short be prepared to have the thing fight you every step of the way.
>
>
Message: 5
>
From: "ROSE,ROBERT W (HP-Corvallis,ex1)" <email@hidden>
>
To: email@hidden
>
Subject: RE: POST & GET Examples don't work behind a firewall?
>
Date: Tue, 15 Apr 2003 17:20:32 -0700
>
>
I had to use the URL Access Manager (Carbon API) from my Cocoa application.
>
I wanted to have greater control over the upload/download process, be able
>
to abort, tweak headers, and POST binary data rather than simple key=value
>
pairs. I don't believe NSURL provided this ability. Try using the URL
>
Access Manager.
>
>
-
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.