Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

send does not work if you have data in the request: #6

Open
pjaggi1 opened this issue Oct 30, 2023 · 8 comments
Open

send does not work if you have data in the request: #6

pjaggi1 opened this issue Oct 30, 2023 · 8 comments

Comments

@pjaggi1
Copy link

pjaggi1 commented Oct 30, 2023

request.send("")

@pjaggi1
Copy link
Author

pjaggi1 commented Oct 30, 2023

still need to call xmlhr, but with data as argument?

@DerThorsten
Copy link
Collaborator

when I wrote this I did not test send very much (or at all) since I was mostly interested in getting downloads to work. But I am happy to merge any PR =)

@albop
Copy link

albop commented Nov 24, 2023

That would be very useful indeed ? Do you know what is blocking?

@DerThorsten
Copy link
Collaborator

That would be very useful indeed ? Do you know what is blocking?

I think it just needs someone implementing it :-)

@albop
Copy link

albop commented Nov 24, 2023

Yes of course ! My request was malformed.
I was wondering if you have some knowledge of foreseeable complications. Like a dependency that would not be available in wasm... Or some reason for why data requests are more complicated to post from the wasm side ?

@DerThorsten
Copy link
Collaborator

you can probably just copy paste from https://github.com/koenvo/pyodide-http/tree/main/pyodide_http which is basically the same project, just for pyodide.

@DerThorsten
Copy link
Collaborator

@albop
Copy link

albop commented Nov 24, 2023

Thanks. I'll give it a try

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants