* * * * *
PUT an entry on the ol' blog
I finally got the PUT method [1] working for mod_blog [2]. The code on the
receiving end [3] is fine, but the script on the sending side [4] is messy,
but it works well enough for me to use.
-----[ shell ]-----
[spc]lucy:~/source/boston/Lua>lua put.lua -b test /tmp/foo/1 /tmp/foo/*.png
PUT
http://boston.roswell.area51/2024/08/23.1 (637)
PUT
http://boston.roswell.area51/2024/08/23/local_network.png (1273)
PUT
http://boston.roswell.area51/2024/08/23/local_network_add.png (1512)
PUT
http://boston.roswell.area51/2024/08/23/local_network_remove.png (1460)
PUT
http://boston.roswell.area51/2024/08/23/network.png (1702)
PUT
http://boston.roswell.area51/2024/08/23/network_add.png (1891)
PUT
http://boston.roswell.area51/2024/08/23/network_remove.png (1842)
[spc]lucy:~/source/boston/Lua>
-----[ END OF LINE ]-----
This command on my development server was used to create an entry with
multiple images. As you can see, it puts out the URL (Uniform Resource
Locator)s that are created as the script runs. And this entry is a test to
see if works on my actual server. It should.
I hope.
[1]
gopher://gopher.conman.org/0Phlog:2024/08/21.1
[2]
https://github.com/spc476/mod_blog
[3]
https://github.com/spc476/mod_blog/blob/f5009eb549d719f53c48e616cb87f43e8755c6a4/src/main_cgi.c#L560
[4]
https://github.com/spc476/mod_blog/blob/f5009eb549d719f53c48e616cb87f43e8755c6a4/Lua/put.lua
Email author at
[email protected]