Web 2.0 Project That Analyzes HTTP Requests

Here’s some information about a Xojo Web 2.0 app that I’ve developed for analyzing HTTP requests. It includes a link to an instance of the app (which is running on a Xojo Cloud server), and a link that you can use to download the project file.

I hope you find it to be helpful.

https://timdietrich.me/blog/xojo-web-http-request-analyzer/

6 Likes

Got a tip for you! JSONItem can format string output, just set JSONItem.Compact = false
(That will remove the dependency on the deprecated Text datatype)

3 Likes

Thank you, Tim Dietrich.

As Tim Parnell said, you can remove JSONFormatter and change this lines:

Var Formatter As New JSONFormatter( ResponseJSON.ToString.ToText )

Response.Status = 200
AddServerHeader( Response )
Response.Header( "Content-Type" ) = "application/json"
Response.Write( Formatter.Format )

to

//Var Formatter As New JSONFormatter( ResponseJSON.ToString.ToText )

Response.Status = 200
AddServerHeader( Response )
Response.Header( "Content-Type" ) = "application/json"
//Response.Write( Formatter.Format )
ResponseJSON.compact = False
Response.Write( ResponseJSON.ToString)

It is faster not to use the JSONFormatter and looks better too:

JSONFormatter
image

JSONItem.Compact = False
image

Thanks @Tim_Parnell and @AlbertoD for the tip about JSONItem’s Compact property.

I didn’t know that existed.

1 Like