[Gambas-user] HTTP Form

Gianluigi bagonergi at gmail.com
Mon May 16 17:49:49 CEST 2022


Il giorno lun 16 mag 2022 alle ore 16:07 T Lee Davidson
<t.lee.davidson at gmail.com> ha scritto:
>
> On 5/16/22 04:57, Gianluigi wrote:
> > Dear Lee,
> >...

> It's not drudgery, Gianluigi. I enjoy it.

:-)

> The answer depends on what you mean by, "open". If you mean, does it retrieve a web page and render it for display like a web
> browser does, then the answer is No.

No, I don't mean 'opening the browser' but writing in the login form
in order to access the site, otherwise what is the point of
HttpForm.Add?

> Receiving the HTML code is precisely what it is supposed to do. A web server sends HTML text whether the client is a browser,
> HttpClient, HttpForm, or even Telnet. A browser interprets the HTML code and renders it for display to the user. The other
> clients I mentioned do not. They just receive the HTML code. What the user or programmer does with it after that is up to
> him/her. In my client example, I place the HTML code in the TextArea.

if it were possible, I would appreciate an example where I have to
respond in order to gain access and the code to do so :-P

> >>> P.S. I was not able to use HttpForm to login in to the BugTracker. Curl appears to choke on submitting a form through a 302
> >>> redirection due to: "necessary data rewind not possible".
>
> I am not getting this error today. Perhaps I was having difficulty yesterday due to whatever was causing the Error 520, that
> BruceS and I experienced, on the Wiki.
>
>
> >
> > If I use .URL = "http://gambaswiki.org" as the address, I get:
>
> Why would you use that URL? It is not a URL designated as a form data receiver/processor (in a form's "action" attribute).

Because it is the address that Firefox uses to save credentials

>
>
> >
> > If instead I use .URL = "http://gambaswiki.org/bugtracker" as the
> > address, I get:
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> > "http://www.w3.org/TR/html4/strict.dtd">
> > <html xmlns="http://www.w3.org/1999/xhtml"
> > xmlns:v="urn:schemas-microsoft-com:vml">
> >
> [snip]
>
> Now that *is* a form data processor URL. And the HTML code is similar to what I get today. But, it appears that a successful
> login was not accomplished. Now that the Curl error (-1065) is apparently no longer occurring, I will need to investigate this
> further. I'm glad you mentioned this; otherwise I would not have known.
>
>
> --
> Lee
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----

Thank you for everything and regards
Gianluigi


More information about the User mailing list