× 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 Alan,

I wrote an article titled "RPG Consumes the REST" tht was published in the September 2009 issue of System iNEWS magazine. Here's a link to it (you'll need a ProVIP subscription)
http://systeminetwork.com/article/rpg-consumes-rest

The article gives a brief description of the REST architecture, which is an architecture, not a protocol. The protocol used for REST web services is HTTP.

Regarding your 500 error -- you simply haven't given me enough information to try to help you. Either send me a debug file generated from HTTPAPI, or post a simple program that I'm able to run to reproduce your error.

The "official" support mailing list for HTTPAPI is the FTPAPI mailing list (which is for both FTPAPI and HTTPAPI) on my web site. I don't mind discussing it here, but you'll connect with more existing HTTPAPI users over there:
http://www.scottklement.com/mailman/listinfo/ftpapi



On 8/12/2010 4:27 PM, Alan Campin wrote:
I am using Scott's HTTP Api to attempt to write to a Rest Server.

In all the previous projects that I have done using this api, the targets
where outside the company servers but this server was created by a
consultant and he tells me that it is a Rest Server.

I am using the HTTP_Url_Get_XML to send the following

http://cre-freitrater:8080/cre_freitrater/rest/freitrater/1

The request chain that is being sent to it looks like the following:

GET /cre_freitrater/rest/freitrater/1 HTTP/1.1 Host: cre-freitrater:8080
User-Agent: http-api/1.23

I am getting back a 500 response saying that there was an internal server
error.

I can type the same string (the first string) into the browser and it runs
without a hitch.

This is probably a Scott question but what has to be done different for REST
server than a regular HTTP server?. According to what I have read it just
uses regular HTTP protocols.

Can anyone point me to an article on writing a Rest Client in RPG?

Any help would be appreciated.


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.