Comments (11)
New thing added to this api is X-XSRF-TOKEN header, when I populated that it worked again. Otherwise giving un authorized. Now have to solve where to ask / calculate this token.
from paketin-seuranta.
from paketin-seuranta.
Where'd you get that one for testing?
…
On Sun, Nov 22, 2020, 11:54 Martin Kankaanranta @.***> wrote: New thing added to this api is X-XSRF-TOKEN header, when I populated that it worked again. Otherwise giving un authorized. Now have to solve where to ask / calculate this token. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#83 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJU4T5RZYRXAYESOZW566RDSRDNUPANCNFSM4T3DQPBA .
From @ristomatti at private Trello board so @ristomatti decides should it be shared for you
from paketin-seuranta.
Is the only right way to handle this via loading tracking page because it initially gives response header "Set-Cookie" having that token which is valid for X time. I'm not sure.
from paketin-seuranta.
@norkator Sure you can share it (privately). It's only my new laptop. 😄 But it'll be a home delivery anyway. To be delivered Monday/Tuesday I believe.
from paketin-seuranta.
Okay theres another way.. I stole this from Aftership website: 1ZA529F90495123295 @developerfromjokela
from paketin-seuranta.
Where'd you get that one for testing?
…
On Sun, Nov 22, 2020, 11:54 Martin Kankaanranta @.***> wrote: New thing added to this api is X-XSRF-TOKEN header, when I populated that it worked again. Otherwise giving un authorized. Now have to solve where to ask / calculate this token. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#83 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJU4T5RZYRXAYESOZW566RDSRDNUPANCNFSM4T3DQPBA .From @ristomatti at private Trello board so @ristomatti decides should it be shared for you
I meant how did you find about the header? Or where?
from paketin-seuranta.
Where'd you get that one for testing?
…
On Sun, Nov 22, 2020, 11:54 Martin Kankaanranta @.***> wrote: New thing added to this api is X-XSRF-TOKEN header, when I populated that it worked again. Otherwise giving un authorized. Now have to solve where to ask / calculate this token. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#83 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJU4T5RZYRXAYESOZW566RDSRDNUPANCNFSM4T3DQPBA .From @ristomatti at private Trello board so @ristomatti decides should it be shared for you
I meant how did you find about the header? Or where?
Just simply tested with chrome and noticed that token, then tried with rest client tool with Paketin Seuranta current config, got that permission denied and then with token which I copied from this browser request -> then it worked.
from paketin-seuranta.
This stupid X-XSRF-TOKEN-ST is what I am looking for, its calculated at Bundle javascript file when entering ups webpage. I try engineer how its done so can mimic it.
from paketin-seuranta.
I don't know why I think this so hard, if you call "https://www.ups.com/track?loc=en_US" with get method theres header in response with X-XSRF-TOKEN-ST
from paketin-seuranta.
Okay found out just by looking how ups page is actually handling these tokens so now theres header called Cookie with X-XSRF-TOKEN and its corresponding token and then own X-XSRF-TOKEN with X-XSRF-TOKEN-ST
from paketin-seuranta.
Related Issues (20)
- Add number of pieces/packages HOT 1
- Make estimate delivery date visible HOT 1
- User interface improvements HOT 3
- Clean terrible query mess
- Create test support to test every available courier strategy
- CSV export change
- Slide to archive is too sensitive after the recent update
- Omniva tracking support
- PostNord tracking is broken
- Matkahuolto delivery icon/state wrong after reminder message HOT 2
- Feature request: filter duplicate tracking codes from barcode list HOT 2
- Posti home delivery MPS packages show last pick up day HOT 1
- GPLv3 License violation (readme) HOT 5
- DHL Express tracking is broken HOT 2
- Widget does not work with compileSdkVersion 31 HOT 1
- Posti integration is broken HOT 4
- DHL Express tracking fails HOT 13
- Matkahuolto package displayed as in transit after a failure to notify receiver status HOT 2
- Develop an iOS/MacOS variant? HOT 1
- Fix storage permission logic to handle newer Android versions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paketin-seuranta.