Skip to content

Conversation

@odin-masta
Copy link

New url structure.

New url structure.
destination="~/lunch/tu-$id-$date.jpg"
# https://www.tu.no/?module=TekComics&service=image&id=lunch&key=2020-05-28
curl --get --url "$url" --data-urlencode "module=$module" --data-urlencode "service=$service" --data-urlencode "id=$id" --data-urlencode "key=$date" --output "$destination"
curl --get --url "$url$date" --data-urlencode "module=$module" --data-urlencode "service=$service" --data-urlencode "id=$id" --data-urlencode "key=$date" --output "$destination"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it not better to use the --data-urlencode directives to ensure that url queries are handled properly? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants