openfoodfacts / openfoodfacts-ubuntu

Open Food Facts project for Ubuntu Touch
7 stars 3 forks source link

Send HTTP header with requests #21

Open teolemon opened 5 years ago

teolemon commented 5 years ago

Send HTTP header with requests: "Official Ubuntu Mobile app version X.Y.Z - Scan" or "Official Ubuntu Mobile app version X.Y.Z - Search"

This helps us separate bots from legitimate queries

sy-per commented 4 years ago

Do you know what the app is currently send ?

teolemon commented 4 years ago

I don't think it's sending any. We have started an easier to follow doc at: https://documenter.getpostman.com/view/8470508/SVtN3Wzy?version=latest#intro

Nymerea commented 4 years ago

I don't think it's possible.

We use basic QML component to handle request

None of those api allow us explicitly to alter request.

Maybe there is a trick to do it