Search the Community
Showing results for tags 'http'.
Is it possible to perform user authentication between client app and server using SMS? I want my app to authenticate with a server, and either return a JSON with a error message, or a JSON with user profile data. Is this possible? If so, what do I need on the server side to perform the request? e.g. this gets an HTML document from google FHttp.Get('http://www.google.com'); I want to instead, post a username and password and in return get JSON (error message not authenticated, or some user profile data) but it doesn't look like TW3HttpRequest object has a put method how
I recently had a look at Scott Helme's site, https://securityheaders.io Scott is involved in information security and his site explains in great detail how to enhance site security by means of http response headers. Quoted : "HTTP Response headers are name-value pairs of strings sent back from a server with the content you requested. They are typically used to transfer technical information like how a browser should cache content, what type of content it is, the software running on the server and much, much more. Increasingly, HTTP Response headers have been used to transmit security
I'm trying to download web text content into either a memo field or string variable. Most examples given in this forum and the documentation work on the IDE browser, but not on external Chrome, Safari or IE browsers. For example, this code works when I click Execute on SMS IDE, but doesn't work on external browsers: var v1, v2, v3: Variant; begin //get browser title v1 := W3IFrameHTMLElement1.Handle.contentDocument; W3Memo1.Text := v1.title; //get browser content v2 := W3IFrameHTMLElement1.Handle.contentDocument.documentElement; W3Memo2.Text := v2.innerHTML;
The documentation demo posted on http://smartmobilestudio.com/documentation/networking/tw3httprequest/works - but not with all JSON files. It works with the file http://date.jsontest.com/but when I try a different JSON file the data is not displayed in the memo. For example, I'm trying to download the file http://api.worldbank.org/countries/all/indicators/SP.POP.TOTL?format=json from the World Bank open data but the file is not loaded into the memo field. Could it be the JSON format?