Giter Site home page Giter Site logo

Comments (5)

palmjulia avatar palmjulia commented on June 16, 2024 1

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.

palmjulia avatar palmjulia commented on June 16, 2024 1

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.

liberaliscomputing avatar liberaliscomputing commented on June 16, 2024

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.

liberaliscomputing avatar liberaliscomputing commented on June 16, 2024

@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.

palmjulia avatar palmjulia commented on June 16, 2024

Thanks for testing!

from fhircrackr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.