Why doesn my posting using -F work?
You can’t simply use -F or -d at your choice. The web server that will receive your post assumes one of the formats. If the form you’re trying to “fake” sets the type to ‘multipart/form-data’, then and only then you must use the -F type. In all the most common cases, you should use -d which then causes a posting with the type ‘application/x-www-form-urlencoded’. This is described in some detail in the MANUAL and TheArtOfHttpScripting documents, and if you don’t understand it the first time, read it again before you post questions about this to the mailing list. Also, try reading through the mailing list archives for old postings and questions regarding this.
You can’t simply use -F or -d at your choice. The web server that will receive your post assumes one of the formats. If the form you’re trying to “fake” sets the type to ‘multipart/form-data’, then and only then you must use the -F type. In all the most common cases, you should use -d which then causes a posting with the type ‘application/x-www-form-urlencoded’. This is described in some detail in the MANUAL and TheArtOfHttpScripting documents, and if you don’t understand it the first time, read it again before you post questions about this to the mailing list. Also, try reading through the mailing list archives for old postings and questions regarding this.