I am having troubles compiling the extended version of HTTPRequest. There are two versions in the C10 documentation. The second version has two extra fields passed into the procedure: content-type and headers.
I can compile the first version of HTTPRequest but not the extended version. The commented code below compiles but the second line of code does not. Any ideas?
I have all of the variables declared in the procedure or globally, it does not matter. The compiler is coming back with a “No matching prototype available” error. I have looked in ClaRunExt.clw and .inc and the extended version is prototyped in there. And, it appears that I do not need to set any conditional compilation symbols in the project either. I have used the CLATalk class in my project
If I cannot use the second version then I may need some help figuring out where to put the header data in since the Clarion documentation is very vague. I do not want to use NetTalk at this point. I would prefer to use the resident Clarion calls instead.
!STATUS = CLATLK.HTTPWEBREQUEST(HTTPWEBADDRESS, HttpVerb:POST, POSTDATA, REQUESTPARAMETERS, RESPONSEOUT) ! Compiles STATUS = CLATLK.HTTPWEBREQUEST(HTTPWEBADDRESS, HttpVerb:POST, POSTDATA, REQUESTPARAMETERS, CONTENTYPE, HEADERS, RESPONSEOUT) ! Does not compile
Thanks all and Merry Christmas!