JSON - XPRIM_HttpRequest vs PRIM_WEB.HttpRequest
Posted: Mon Dec 02, 2019 8:34 pm
Hi
I have this small solution where I integrate with a service using JSON.
It is right now called from a server module. I am using XPRIM_HttpRequest like this:
Define_Com Class(#XPRIM_HttpRequest) Name(#HttpRequest)
where I am setting some parameters like this:
#HttpRequest.Options.AddBasicAuthorization Username('XYZ') Password('abc')
#HttpRequest.Options.SetMiscProperty Name(Content-Type) Value(application/x-www-form-urlencoded)
#HttpRequest.Content.AddUrlEncodedFormValue Name('CATALOGID') Value('KNO')
#HttpRequest.Content.AddUrlEncodedFormValue Name('partnerid') Value('X2')
Could I use PRIM_WEB.HttpRequest in the same way but in a VL-web page? or is it not a way to go when I have to set the userid/password?
If it is Okay, how do i set these parameters then?
/klaus
I have this small solution where I integrate with a service using JSON.
It is right now called from a server module. I am using XPRIM_HttpRequest like this:
Define_Com Class(#XPRIM_HttpRequest) Name(#HttpRequest)
where I am setting some parameters like this:
#HttpRequest.Options.AddBasicAuthorization Username('XYZ') Password('abc')
#HttpRequest.Options.SetMiscProperty Name(Content-Type) Value(application/x-www-form-urlencoded)
#HttpRequest.Content.AddUrlEncodedFormValue Name('CATALOGID') Value('KNO')
#HttpRequest.Content.AddUrlEncodedFormValue Name('partnerid') Value('X2')
Could I use PRIM_WEB.HttpRequest in the same way but in a VL-web page? or is it not a way to go when I have to set the userid/password?
If it is Okay, how do i set these parameters then?
/klaus