123432198765
123432198765

Reputation: 276

Handling HTTP Requests in JavaScript

How do I handle HTTP GET queries in my website like mywebsite.com/Hi%26Hello or mywebsite.com/Dogs%26Cats.

Using plain JavaScript and Github Pages is it possible to respond to GET requests like this and show pages related to the query? Thanks!

Upvotes: 1

Views: 257

Answers (1)

Quentin
Quentin

Reputation: 943240

To respond to GET requests?

No.

HTTP requests are received by an HTTP server.

You can write an HTTP server using JavaScript (commonly with Node.js + Express.js) but Github Pages doesn't support any form of server-side programming.

Upvotes: 1

Related Questions