× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Jon,

Jon S wrote:
but I am stuck on how to retrieve the HTTP header that's coming back.
I am getting and Auth Token back that I need to use for subsequent
calls.

If you are indeed looking for an HTTP HEADER (not a SOAP header, or anything else in the body of the HTTP response -- but an actual HTTP header...) then you can retrieve it by calling the HTTP_Header() API from HTTPAPI -- this is a rather unusual request, so I don't have any sample code demonstrating it... but, if your header says something like 'JonAuth: 1234566BlahBlah' you'd retrieve it like this:

MyCharVar = HTTP_Header('JonAuth');

If the server sends more than one JonAuth: header, you could do this:

MyCharVar = HTTP_Header('JonAuth': 1);
MyCharVar2 = HTTP_Header('JonAuth': 2);
MyCharVar3 = HTTP_Header('JonAuth': 3);

To retrieve the first, second and third occurrence of JonAuth, respectively.

If you're willing, please join the FTPAPI mailing list (which is for discussions of both FTPAPI and HTTPAPI), I think you'd benefit from those discussions, and we'd benefit from your wisdom as well.

Any help would be appreciated, and if you happen to see this Scott, I
was wondering what you were going to be presenting at the users group
in St. Louis in December.

I've given them a list of the sessions I have available, and I'm waiting for them to pick which ones they're interested in...

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.