Koha/misc/migration_tools
David Cook bf427a2947
Bug 37553: Consistently send Csrf-Token in request header
This change consistently sends the Csrf-Token in the request header.
Previously, one POST sent it in the request body, while the other POST
sent it in the request header. Since we're using an API, it's best
for us to always send it in the request header

Test plan:
0. Apply the patch
1. perl ./misc/migration_tools/koha-svc.pl \
	http://localhost:8081/cgi-bin/koha/svc koha koha 29 > bib-29.xml
2. perl ./misc/migration_tools/koha-svc.pl \
	http://localhost:8081/cgi-bin/koha/svc koha koha 29 bib-29.xml
3. Note that the following appears in STDOUT and there is no 403 error:
"update 29 from bib-29.xml"

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-08-02 18:59:59 +02:00
..
22_to_30
ifla
build_oai_sets.pl
buildCOUNTRY.pl
buildEDITORS.pl
buildLANG.pl
bulkmarcimport.pl Bug 30349: Add missing double dash (--delete) to POD 2024-03-22 10:35:24 +01:00
checkNonIndexedBiblios.pl
create_analytical_rel.pl
import_lexile.pl
koha-svc.pl Bug 37553: Consistently send Csrf-Token in request header 2024-08-02 18:59:59 +02:00
rebuild_zebra.pl Bug 34481: Tidy altered code 2024-06-27 14:04:50 +02:00
rebuild_zebra_sliced.sh
remove_unused_authorities.pl
switch_marc21_series_info.pl
upgradeitems.pl