× 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.



Not authorized but the trick might be in the opening of connection.

On Fri, Aug 13, 2010 at 10:31 AM, Charles Wilt <charles.wilt@xxxxxxxxx>wrote:

Why not just STRCMNTRC?

Charles

On Fri, Aug 13, 2010 at 12:07 PM, Aaron Bartell <aaronbartell@xxxxxxxxx>
wrote:
This might be more work than it's worth (or maybe not if this is an
important business need), but you could also Wireshark what is coming
from
the IBMi by putting up a simple Java Servlet on your PC and then have
Wireshark monitor the *inbound* data. Then do a compare/contrast on that
data. This will let you know if some funky translation is happening as
it
leaves the IBMi.

Aaron Bartell
http://mowyourlawn.com
http://mowyourlawn.com/blog/


On Fri, Aug 13, 2010 at 10:24 AM, Alan Campin <alan0307d@xxxxxxxxx>
wrote:

At this point, I am totally lost. I wrote a little java program and ran
that
on the PC and it works. We have tried a half a dozen different tools to
send
the request and they all work. The only thing that does not work is
sending
from AS/400 via HTTPAPI. I have put Wireshark on my machine and watched
the
string go out from my pc and the HTTP packets are exactly the same as
what
I
see in the HTTPAPI dump and we know that the server is receiving the
string
fine and decoding it because of what we see in the dump.

The only differences between the data being sent from each source is the
user-agent. The consultant insists that the error is happening because
the
connection is being closed immediately. I am going to try moving the
Java
class to my AS/400 and calling that and see if will work.

All in all, bizarre.

On Fri, Aug 13, 2010 at 7:36 AM, Pete Helgren <pete@xxxxxxxxxx> wrote:

Could it be URL encoding? The fact the you can type it in a browser
and it works, tells me one of two things: You are subtly keying in
something that isn't in your code HTTPAPI or there is an encoding
issue
that the browser is managing to deal with that your code in HTTPAPI
isn't handling. I think HTTPAPI naturally encodes everything but
perhaps something small is missing. Cut and paste the browser url
into
HTTPAPI and test it directly perhaps?

Pete Helgren
Value Added Software, Inc
www.valadd.com


On 8/12/2010 3: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.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.