Git Product home page Git Product logo

Comments (5)

bobbyg603 avatar bobbyg603 commented on June 12, 2024

I just tried a similar things with WithHeaders and that doesn't appear to work either :(

from mockhttp.

richardszalay avatar richardszalay commented on June 12, 2024

Hi @bobbyg603 thanks for logging this. It looks like there is indeed a compatibility issue with WithFromData and the way you are submitting your content. I'll have a look at fixing that issue, but in the meantime you can send your data like this if it's acceptable for your usecase:

var formData = new MultipartFormDataContent()
{
    new FormUrlEncodedContent(new Dictionary<string, string>
    {
         ["email"] = email,
         ["password"] = password
    })
};

Can you provide a repro for the WithHeaders issue you're having?

from mockhttp.

richardszalay avatar richardszalay commented on June 12, 2024

Hi again @bobbyg603 - I might close this issue soon if I don't hear back from you. If you do manage to repro the issue again, open another issue can we can go through it.

from mockhttp.

bobbyg603 avatar bobbyg603 commented on June 12, 2024

Hi @richardszalay I've had to move on to other projects. Next time I'm working on the project I'll try and create a reproducible example unfortunately I don't have a good ETA.

from mockhttp.

richardszalay avatar richardszalay commented on June 12, 2024

No problem, I'll close this issue then. Feel free to reopen it in the future if you run into it again!

from mockhttp.

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.