diff cutelient/main.c @ 18:fa2b8af609d9

[Seobeo] Fixed a bug with pathing. Support SSL.
author June Park <parkjune1995@gmail.com>
date Mon, 06 Oct 2025 08:21:34 -0700
parents d97ec3ded2ae
children 875bb6e10db7
line wrap: on
line diff
--- a/cutelient/main.c	Sat Oct 04 07:53:12 2025 -0700
+++ b/cutelient/main.c	Mon Oct 06 08:21:34 2025 -0700
@@ -1,7 +1,13 @@
+#include	<err.h>
 #include "seobeo/seobeo.h"
 
 
-int main()
+int main(int argc, char **argv)
 {
-  Seobeo_Web_ClientGet("127.0.0.1", "6969", "/react");
+  if (argc < 3)
+  {
+	  err(EXIT_FAILURE, "Usage: %s URL, PORT, PATH\n", argv[0]);
+  }
+  Seobeo_Web_ClientGet(argv[1], argv[2], argv[3]);
+  return 0;
 }