[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SV: HTTPAPI and V7r2



Chris Edmondson probably gives you the answer.
If the user profile used for communication didn't have a Home directory specified in V7R1 but it was changed to a default during the upgrade to V7R2
then you have problems when the path to the IFS is specified only as 'tmp/result'. It should be '/tmp/result' instead. 

So the statement should look like this:

rc = http_url_get('https://' + %Trim(NOMSVR) + '?' +
                         http_url_encoder_getstr(enc)
                       : '/tmp/result');

Kind regards
Peder Udesen

-----Oprindelig meddelelse-----
Fra: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] På vegne af HIRSCH Thomas
Sendt: 7. oktober 2015 08:32
Til: HTTPAPI and FTPAPI Projects
Emne: RE: HTTPAPI and V7r2

The program was compiled in V5R4 and was working fine in V7R1 until we change the machine (in V7R2) HTTPAPI is quite old (1.21) and was just saved/restored  from the old machine

-----Message d'origine-----
De : ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] De la part de Mike Krebs Envoyé : mardi 6 octobre 2015 18:22 À : HTTPAPI and FTPAPI Projects Objet : RE: HTTPAPI and V7r2

Interesting. Any idea if the concatenation worked correctly? Or was it the HTTP part that was not working? Roughly how old was the original working program?

Did you reinstall HTTPAPI on v7r2? Different version?

Any other programs that you had a similar problem with?

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of HIRSCH Thomas
Sent: Tuesday, October 6, 2015 7:03 AM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: HTTPAPI and V7r2

Dear all,

We have just upgraded our iSeries from V7R1M0 to V7R2M0 and we noticed that the following instruction :

rc = http_url_get('https://' + %Trim(NOMSVR) + '?' +
                         http_url_encoder_getstr(enc)
                       : 'tmp/result');

Did not work properly.
Although the request was still working fine, the STMF /tmp/result was empty

The solution was just to re-compile the program (the previous version was V7R1)

Best regards
Thomas
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------


This email and any files transmitted with it may be confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------