]> sjero.net Git - wget/blobdiff - src/options.h
added option --https-only
[wget] / src / options.h
index 44e0a703c0b55e60f2c447579f983512e5070510..4460c6c60887594325cfc74dedcd4d8793e2d2b3 100644 (file)
@@ -166,7 +166,7 @@ struct options
   bool timestamping;           /* Whether to use time-stamping. */
 
   bool backup_converted;       /* Do we save pre-converted files as *.orig? */
-  bool backups;                        /* Are numeric backups made? */
+  int backups;                 /* Are numeric backups made? */
 
   char *useragent;             /* User-Agent string, which can be set
                                   to something other than Wget. */
@@ -215,9 +215,9 @@ struct options
   char *ca_directory;          /* CA directory (hash files) */
   char *ca_cert;               /* CA certificate file to use */
 
-
   char *random_file;           /* file with random data to seed the PRNG */
   char *egd_file;              /* file name of the egd daemon socket */
+  bool https_only;             /* whether to follow HTTPS only */
 #endif /* HAVE_SSL */
 
   bool cookies;                        /* whether cookies are used. */
@@ -228,6 +228,9 @@ struct options
 
   char *post_data;             /* POST query string */
   char *post_file_name;                /* File to post */
+  char *method;                 /* HTTP Method to use in Header */
+  char *body_data;              /* HTTP Method Data String */
+  char *body_file;              /* HTTP Method File */
 
   enum {
     restrict_unix,