Message "Only the http protocolis available!" in log

Discussions related to HTTPAPI (An HTTP Client Package for RPG programming.) http://www.scottklement.com/httpapi/
Post Reply
dfilak
Posts: 2
Joined: Thu Oct 21, 2021 3:44 pm

Message "Only the http protocolis available!" in log

Post by dfilak »

Good day. We are trying to connect to a HTTPS: address for the first time and are receiving the below messages in the HTTPAPI log. WSDL2RPG programs (Tools/400 Freeware) are running on iSeries OS V7R3M0. Programs work if going to a HTTP: address. Does the SetError message mean that https is not supported? Or are there settings somewhere needing to be changed?

Regards, David


HTTPAPI Ver 1.24beta11 released 2010-09-09
OS/400 Ver V7R3M0

New iconv() objects set, PostRem=1208. PostLoc=0. ProtRem=819. ProtLoc=0
http_persist_open(): entered
http_long_ParseURL(): entered
SetError() #1: Only the http protocol is available!

WSDL2RPG Ver V1.12 released 2010-08-06

WSDL2RPG (eXpat error): (3) no element found

received at line: 1
at column: 0
from procedure: WSDL2R97_XMLSAXParser_endParse
and statement: 105600
Scott Klement
Site Admin
Posts: 872
Joined: Sun Jul 04, 2021 5:12 am

Re: Message "Only the http protocolis available!" in log

Post by Scott Klement »

You are using a version of HTTPAPI that is 11 years out-of-date. Please consider updating it.

It sounds to me like you're trying to use a URL that begins with https://? This is fully supported in HTTPAPI, but when you compiled it (back in 2010!) you did not compile support for SSL into the product.

Please download the latest version and compile it with SSL support included.
sslopt.png
sslopt.png (14.65 KiB) Viewed 17524 times
You can find/download the latest version from here:
https://www.scottklement.com/httpapi/
dfilak
Posts: 2
Joined: Thu Oct 21, 2021 3:44 pm

Re: Message "Only the http protocolis available!" in log

Post by dfilak »

Thanks Scott. We do have a later version of HTTPAPI downloaded but have not retroed all our programs to use it. Will give that a go - appreciate the fast response

David
Scott Klement
Site Admin
Posts: 872
Joined: Sun Jul 04, 2021 5:12 am

Re: Message "Only the http protocolis available!" in log

Post by Scott Klement »

You shouldn't have to do anything special to make them use it? Just make sure it's in your library list (and the old one is not) and it should "just work".
slumbera
Posts: 1
Joined: Tue Jan 11, 2022 9:56 am

Re: Message "Only the http protocolis available!" in log

Post by slumbera »

Hello,
I have the same error "Only the http protocolis available!" in log. I have set SSL support to Y during installation? Is the digital certificate needs to be setup as well? Please help and thank you in advance.
Scott Klement
Site Admin
Posts: 872
Joined: Sun Jul 04, 2021 5:12 am

Re: Message "Only the http protocolis available!" in log

Post by Scott Klement »

slumbera wrote: Tue Jan 11, 2022 9:59 am I have the same error "Only the http protocolis available!" in log. I have set SSL support to Y during installation? Is the digital certificate needs to be setup as well? Please help and thank you in advance.
If your digital certificates aren't set up you'll get a completely different message.

This particular message means that you didn't compile support for https into HTTPAPI. If you truly recompiled HTTPAPI with support for SSL enabled, then perhaps you have a different copy of HTTPAPI in your library list?
Post Reply