Skip to content

Instantly share code, notes, and snippets.

@jamiew
Created February 19, 2019 22:01
Show Gist options
  • Save jamiew/ff7ee425948db50740773431b20d5c5c to your computer and use it in GitHub Desktop.
Save jamiew/ff7ee425948db50740773431b20d5c5c to your computer and use it in GitHub Desktop.
you can't specify uniqueKey as a URL parameter, it has to be inside the actual GML data
gml="<gml><tag><header><client><uniqueKey>jamiew007</uniqueKey></client></header><drawing><stroke><pt><x>1</x><y>1</y><t>1</t></pt></stroke></drawing></tag></gml>"
id=$(curl -s -A curlwriter -d "application=curlwriter&gml=$gml" "https://000000book.com/data")
open "https://000book.com/data/$id"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment