Joined: June 22nd, 2017, 5:06 pm

February 11th, 2018, 6:21 pm #61

i'm so sorry to disturb you, i very mistakenly thought that is you were writing a new manual.... you would be interested.
Quote
Like
Share

Joined: September 29th, 2017, 11:23 am

May 4th, 2018, 5:20 am #62

Latest installment is at https://rfobasic.miraheze.org/wiki/Graphics

I have trial-and-error observations that De Re did not have, and some new illustrations as well. Corrections are still handled promptly.
Quote
Like
Share

Joined: July 10th, 2013, 9:11 am

May 4th, 2018, 8:39 am #63

I like your illustrations especially for text size and anti-aliasing.

Gregor
Quote
Like
Share

Joined: September 29th, 2017, 11:23 am

May 4th, 2018, 9:34 am #64

The ones on GR.OVAL are screen shots. The two you mention are nicer because I lifted them straight off Wikipedia. Wikis on Miraheze let you include any illustration in Wikimedia Commons without even having to upload it. I will take your remarks as a compliment even though they focus on the only two things in the chapter I did not do! If you see mistakes, please let me know!
Quote
Like
Share

Joined: July 10th, 2013, 9:11 am

May 4th, 2018, 10:32 am #65

Sometimes a good graphic tells more than 1000 words.
But I am sure that you support visually impaired users as much as possible.


Gregor.
Quote
Like
Share

Joined: September 29th, 2017, 11:23 am

May 4th, 2018, 4:36 pm #66

I have added more screenshots to the section on GR.CLIP, for fans of illustrations, and of foxes.
Quote
Like
Share

Joined: November 21st, 2013, 7:00 pm

July 18th, 2018, 3:05 pm #67

Referring to another post about html/http.post ;

There is confusion between the POST method with the GET method.

(POST does not send the name/value pairs with the query URL. Only GET uses this method of transport (which is a sort of trademark of GET as it's quite easy to do, i.e you have to send the URL anyway, so why not tag on the payload ?).

POST actually puts the content in the body of the message. (GET requests have no body).
The format of an HTTP POST is to have the HTTP headers, followed by a blank line, followed by the request body. The POST variables can be stored as key-value pairs in the body (but don't have to be).

e.g

Code: Select all

POST /foo.php HTTP/1.1
Host: www.some.server.com
User-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Content-Type: application/x-www-form-urlencoded
Content-Length: 33

first_name=Mickey&last_name=Mouse
e.g

Code: Select all

POST /foo.php HTTP/1.1
Host: www.some.server.com
User-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Connection: Keep-Alive
Content-Type: text/xml; charset=utf-8
Content-Length: 42

<rodent first_name="Mickey">Mouse</rodent>
Note that Basic! can only alter the content (payload), not the actual request headers.
To fully control the request, you have to use the socket commands to simulate the tcp session. (Mougino had a good example somewhere, but I can't find it anymore.)
(On a side note, I just found out that basic uses a rather outdated apache http library which was deprecated and gone from API level 23, which is not good news if you're compiling with API 26.)
- Failure is not an option. It is bundled with the software. -
Quote
Like
Share

Joined: September 29th, 2017, 11:23 am

July 19th, 2018, 9:32 pm #68

I understand the difference between POST and GET but I don't seem to have documented the GET option at all. How would the RFO-BASIC! programmer send a GET request to the host? As there is a HTML.POST and HTTP.POST (and I am not clear on the differences between them), I seem to have documented that only.

I am willing to include examples of the byte traffic for each type of request, though this is secondary from the BASIC programmer's point of view.
Quote
Like
Share

Joined: November 21st, 2013, 7:00 pm

July 21st, 2018, 2:16 am #69

The POST method of querying a web server means that a BASIC program sends name/value pairs to the server. These are appended to the server's URL.
.
.
The desired result is to assemble the following URL:

http://ExampleWebsite.com?FirstName=Fre ... EmployeeID
What is described here is not a POST, but a regular GET.
- Failure is not an option. It is bundled with the software. -
Quote
Like
Share

Joined: July 10th, 2013, 9:11 am

July 21st, 2018, 6:03 am #70

See also the new Http.Request in OliBasic XXIII:
Available request types are "_DELETE", "_GET", "_PATCH", "_POST", "_PUT" with write and read access and "_HEAD", "_OPTIONS", "_TRACE" only with read access.

Gregor
Quote
Like
Share