citation-bot icon indicating copy to clipboard operation
citation-bot copied to clipboard

Prefer GET to POST

Open GlazerMann opened this issue 10 months ago • 3 comments

proxy cachable

GlazerMann avatar Apr 08 '24 13:04 GlazerMann

Some APIs do not: support GET do not work with funky characters do not work with large requests

So, test carefully

GlazerMann avatar Apr 17 '24 15:04 GlazerMann

let me add a condition for funky characters, it is probably the reason for "11β-Hydroxyprogesterone"

maximmasiutin avatar Apr 18 '24 11:04 maximmasiutin

let me add a condition for funky characters, it is probably the reason for "11β-Hydroxyprogesterone"

Sorry, didn't manage to implement it properly. Let me cancel my implementation attempt of changes of GET to POST for now, but let's keep in mind for the future to prefer GET wherever possible. By the way, since you changed all calls to curl, the use of citation bot via proxy works very well, with the only exception that it cannot cache requests made via POST; still even when I tried the code which didn't work well with funky characters, it worked very well if you consider the number of request saved by proxy (I used latest Squid for Linux).

maximmasiutin avatar Apr 18 '24 18:04 maximmasiutin

Closing an moving the wikipedia to-do list

GlazerMann avatar May 13 '24 12:05 GlazerMann