Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Http responseText
Message
From
06/05/2022 07:57:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Http responseText
Miscellaneous
Thread ID:
01684339
Message ID:
01684339
Views:
50
Good Morning,
In VFP6,
I'm trying to get the name 'CORNÉLIO' with the following code, but it's returning 'CORNÃ?LIO'.
what parameter should I pass to http to not convert the value
Can someone explain to me how to do it.
thank you in advance

oHTTP = CREATEOBJECT("WinHttp.WinHttpRequest.5.1")
WITH oHTTP
.Open("GET", lcURL, lcAsyncMode)
.setRequestHeader('Accept', 'application/json')
ENDWITH
oHTTP.send()
the_name = oHTTP.responseText
Next
Reply
Map
View

Click here to load this message in the networking platform