Google seems to think that all software HAS a user interface. Or even a user.
Synchronous server requests are a perfectly reasonable thing to do in some circumstances. And I agree with the author that such a decision belongs to the application developer, not the browser maker.
Synchronous server requests are a perfectly reasonable thing to do inHence async.
some circumstances. And I agree with the author that such a decision >>belongs to the application developer, not the browser maker.
Synchronous server requests are a perfectly reasonable thing to do in
some circumstances. And I agree with the author that such a decision
belongs to the application developer, not the browser maker.
Google seems to think that all software HAS a user interface. Or
even a user.
Synchronous server requests are a perfectly reasonable thing to do in
some circumstances. And I agree with the author that such a decision
belongs to the application developer, not the browser maker.
What kind of *browsers* don't have a user interface?
On Saturday, June 25, 2022 at 5:07:06 AM UTC-5, Arno Welzel wrote:
What kind of *browsers* don't have a user interface?
They are called Headless Browsers:
<https://en.wikipedia.org/wiki/Headless_browser>
On Saturday, June 25, 2022 at 5:47:44 PM UTC-5, Arno Welzel wrote:
Michael Haufe (TNO):
On Saturday, June 25, 2022 at 5:07:06 AM UTC-5, Arno Welzel wrote:Yes, I'm aware of this. But are these are relevant in this context? How
What kind of *browsers* don't have a user interface?
They are called Headless Browsers:
<https://en.wikipedia.org/wiki/Headless_browser>
many applications use headless browsers *and* need to use XMLHttpRequest?
Applications that have an automated QA process use this often. You can test scenarios such as:
"When the 'Clear Cart' button is clicked the associated users Shopping Cart is cleared"
You also have the use case of web scraping from batch scripts. Some CLIs don't support a proper DOM
such as PowerShell 7.
Michael Haufe (TNO):
On Saturday, June 25, 2022 at 5:07:06 AM UTC-5, Arno Welzel wrote:
What kind of *browsers* don't have a user interface?
They are called Headless Browsers:
<https://en.wikipedia.org/wiki/Headless_browser>Yes, I'm aware of this. But are these are relevant in this context? How
many applications use headless browsers *and* need to use XMLHttpRequest?
Michael Haufe (TNO):
Applications that have an automated QA process use this often. You can test scenarios such as:
"When the 'Clear Cart' button is clicked the associated users Shopping Cart is cleared"
I dont't understand why this requires a syncronous XMLHttpRequest. Test tools like Cypress can wait for events.
You also have the use case of web scraping from batch scripts. Some CLIs don't support a proper DOM
such as PowerShell 7.
And web scraping needs XMLHttpRequest? Why?
On Sunday, June 26, 2022 at 12:02:27 PM UTC-5, Arno Welzel wrote:
Michael Haufe (TNO):
Applications that have an automated QA process use this often. You can test scenarios such as:
"When the 'Clear Cart' button is clicked the associated users Shopping Cart is cleared"
I dont't understand why this requires a syncronous XMLHttpRequest. Test
tools like Cypress can wait for events.
You also have the use case of web scraping from batch scripts. Some CLIs don't support a proper DOM
such as PowerShell 7.
And web scraping needs XMLHttpRequest? Why?
You seem to be drifting or making a point that wasn't expressed clearly. Which question are you asking?
If I'm in a browser (headless or otherwise) I can near trivially walkAnd why does the XHR to be synchronous?
the hyperlinks of the domain and collect information information such
as email addresses. It's just a DFS or BFS walk. The XHR object even
has the ability to provide a DOM as a result of a request directly
without parsing.
What kind of*browsers* don't have a user interface?
On 25/06/2022 23:47, Arno Welzel wrote:
Michael Haufe (TNO):I've written a couple...
On Saturday, June 25, 2022 at 5:07:06 AM UTC-5, Arno Welzel wrote:
What kind of *browsers* don't have a user interface?
They are called Headless Browsers:
<https://en.wikipedia.org/wiki/Headless_browser>
Yes, I'm aware of this. But are these are relevant in this context? How
many applications use headless browsers *and* need to use XMLHttpRequest?
On 25/06/2022 11:06, Arno Welzel wrote:
What kind of*browsers* don't have a user interface?
Lib curl?
The Natural Philosopher:
On 25/06/2022 23:47, Arno Welzel wrote:
Michael Haufe (TNO):I've written a couple...
On Saturday, June 25, 2022 at 5:07:06 AM UTC-5, Arno Welzel wrote:
What kind of *browsers* don't have a user interface?
They are called Headless Browsers:
<https://en.wikipedia.org/wiki/Headless_browser>
Yes, I'm aware of this. But are these are relevant in this context? How
many applications use headless browsers *and* need to use XMLHttpRequest? >>>
Can you name them? Or are they just relevant to yourself?
The Natural Philosopher:
On 25/06/2022 11:06, Arno Welzel wrote:
What kind of*browsers* don't have a user interface?
Lib curl?
This is not a browser. No, not every library which is able to send HTTP requests and process the response is a "browser".
On 28/06/2022 08:40, Arno Welzel wrote:
The Natural Philosopher:Semantics.
On 25/06/2022 11:06, Arno Welzel wrote:
What kind of*browsers* don't have a user interface?
Lib curl?
This is not a browser. No, not every library which is able to send HTTP
requests and process the response is a "browser".
On 28/06/2022 08:41, Arno Welzel wrote:
The Natural Philosopher:Oh, just relevant to myself. Ive written apps where the easiest solution
On 25/06/2022 23:47, Arno Welzel wrote:
Michael Haufe (TNO):I've written a couple...
On Saturday, June 25, 2022 at 5:07:06 AM UTC-5, Arno Welzel wrote:
What kind of *browsers* don't have a user interface?
They are called Headless Browsers:
<https://en.wikipedia.org/wiki/Headless_browser>
Yes, I'm aware of this. But are these are relevant in this context? How >>>> many applications use headless browsers *and* need to use XMLHttpRequest? >>>>
Can you name them? Or are they just relevant to yourself?
was to implement background tasks from browser to server to update parts
of the web page whilst a real time job - streaming videos TV or music -
was happening in 'foreground'
conceptually these tasks could be considered 'headless browsers', and
they certainly used AJAX style calls and call backs.
But redefining semantics to win arguments doesn't get sound code written
so if you want to challenge that you wont get a response out of me.
Michael Haufe (TNO):
On Sunday, June 26, 2022 at 12:02:27 PM UTC-5, Arno Welzel wrote:
Michael Haufe (TNO):
Applications that have an automated QA process use this often. You can test scenarios such as:
"When the 'Clear Cart' button is clicked the associated users Shopping Cart is cleared"
I dont't understand why this requires a syncronous XMLHttpRequest. Test
tools like Cypress can wait for events.
You also have the use case of web scraping from batch scripts. Some CLIs don't support a proper DOM
such as PowerShell 7.
And web scraping needs XMLHttpRequest? Why?
You seem to be drifting or making a point that wasn't expressed clearly. Which question are you asking?My question was, why *synchronous* XHR is *required* for tests or web scraping. I have done testing with headless browsers myself a lot and
never needed *synchronous* XHR ever.
Also "web scraping" means first of all just to send requests and wait
for the result. There is no issue at all if this is done with
asynchronous XHR.
If I'm in a browser (headless or otherwise) I can near trivially walkAnd why does the XHR to be synchronous?
the hyperlinks of the domain and collect information information such
as email addresses. It's just a DFS or BFS walk. The XHR object even
has the ability to provide a DOM as a result of a request directly
without parsing.
I leave all that ego boosting semantics to computer scientists. I care
simply that it works to do the intended job. I am just an engineer.
On 28/06/2022 11:59, The Natural Philosopher wrote:
<snip>
I leave all that ego boosting semantics to computer scientists. I care
simply that it works to do the intended job. I am just an engineer.
But not an engineer who recognises what he's done. That's not something
that inspires confidence in others.
John
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 469 |
Nodes: | 16 (2 / 14) |
Uptime: | 43:54:41 |
Calls: | 9,449 |
Calls today: | 6 |
Files: | 13,596 |
Messages: | 6,111,934 |
Posted today: | 1 |