Comments (5)
Hi! Thanks for having a look into the code and your detailed description, that's exactly what I need to set it right. It's always a bit hard to implement stuff that you don't actually have a test case for so you input is extremly valuable.
From this documentation and this stack overflow post I was under the impression that cookies are usually set as named parameters.
I've just thought about it and maybe it would be smart if the fhircrackr allowed the user to add an arbitrary header, wouldn't it? Then you could use it to add you cookie and someone else could use it for different purposes. I'll link to this solution as soon as I've got something.
from fhircrackr.
Id be happy if you could test the new branch. Install it with remotes::install_github(repo = "https://github.com/POLAR-fhiR/fhircrackr" , ref = "feature_custom_headers").
If I understood it correctly this time, you should be able to pass your cookies like this:
#adding single cookie
fhir_search(..., add_headers = c(Cookie = "key=value"), ...)
#adding multiple cookies
fhir_search(..., add_headers = c(Cookie = "key1=value1;key2=value2"), ...)
Let me know if that works out for you!
from fhircrackr.
Thank you again for the swift response, @palmjulia! Yes, I can't agree with you more that allowing users to add custom headers will be a great idea! The above solution seems like exactly what we want and let me test it shortly!
from fhircrackr.
@palmjulia, I just tested it and it worked like a charm! Thanks a ton again and I believe you can merged the PR in!
from fhircrackr.
Thanks for testing!
from fhircrackr.
Related Issues (20)
- fhir_melt loses rows
- Vignette building fails when hapi is down
- 'URL using bad/illegal format or missing URL' when sending FHIR requests HOT 16
- Change documentation of fhir_table_description et al
- fhir_crack() | ncores > 1 takes unclear amount of RAM HOT 2
- Custom headers for Cookie based authentication HOT 1
- POST search with relative next links doesn't work HOT 4
- fixed file name pattern to function fhir_load prevents loading arbitrary named xml files HOT 3
- Paging with relative links breaks when searching for `http://` type CodeSystems HOT 6
- Check that next-links don't get url encoded
- BUG: fhircrack fhir_search function gets stuck HOT 4
- Older Version in the CRAN Repository? HOT 2
- Base URL not creectly printed in fhir_search() HOT 1
- CRAN checks fail because \donttest{} examples are tested
- Update Package Citation Info
- fhir_url can't deal with `=` in parameter values HOT 1
- feature: load bundles from xml character vectors HOT 5
- Documantation fhir_cast() - Example not working HOT 2
- feature: select elements based on attribute values in fhir_crack
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 fhircrackr.