Re: Getting HTTP headers from a WSMethodInvocationRef
Re: Getting HTTP headers from a WSMethodInvocationRef
- Subject: Re: Getting HTTP headers from a WSMethodInvocationRef
- From: Simone Manganelli <email@hidden>
- Date: Wed, 6 Sep 2006 12:32:38 -0700
Hey Byron --
Yeah, I had called WSMethodInvocationInvoke, but I was attempting to
get the headers from the InvocationRef, not the resulting
dictionary. Your code works perfectly -- thanks a bunch!
-- Simone
Il giorno 2006-09-06, alle ore 11:19, Byron Wright ha scritto:
have you called WSMethodInvocationInvoke ? I believe Apple's
WSMakeStubs stuff does that for you. That should return a
CFDictionaryRef. You can then get the header from that like this :
CFDictionaryRef result = WSMethodInvocationInvoke(theRPCCall);
CFHTTPMessageRef headers = (CFHTTPMessageRef)CFDictionaryGetValue
(result,kWSHTTPResponseMessage);
CFDictionaryRef headerDict = CFHTTPMessageCopyAllHeaderFields
(headers);
something like that I don't use Carbon all that much.
This testProp variable always seems to return NULL, however. Is
this the correct way to retrieve HTTP headers that are transmitted
with the response to the invocation, or is there an easier/better
way to do it?
-- Simone
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40bluebearstudio.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden