[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Help consuming a REST webservice with HTTPAPI.
The code I posted is working, I needed to add a header to set the referer when doing a request.
If you use the process like I posted try changing the line in the procedure to:
HeaderData = Authorization: Basic [your auth string]' + CRLF +
' Account: [your account ID]' + CRLF;
I have never sent multiple headers so not positive if that is the correct syntax. Another option is to get a tool that allows you to set additional headers in the browser before doing a request. I searched Google for " add additional header to chrome" and several are listed. The top one modHeader looks interesting. I have never tried any of these tools but they sound like they are the ticket for testing your request from the browser.
Scott
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of PReid@xxxxxxxxxxxx
Sent: Tuesday, June 24, 2014 12:25 PM
To: HTTPAPI and FTPAPI Projects
Subject: RE: Help consuming a REST webservice with HTTPAPI.
Wow...sorry...I'm even more lost now...
This would be much easier if it were a SOAP service. At least I could use SoapUI to find out what the request and the response would look like. With REST I have no idea what the request is supposed to look like.
Do you know of any examples of something similar to this somewhere?
___________________________________________________________
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------