Request behavior does not match XMLHttpRequest?

46 views
Skip to first unread message

Ben McCann

unread,
Jun 18, 2013, 3:31:44 AM6/18/13
to mozilla-la...@googlegroups.com
Hi,

Is it possible to send a Uint8Array using the Add-On SDK Request?  I can send a Uint8Array using XmLHttpRequest, but I seem to be having quite a bit of trouble when using the Request object.  I've filed a bug requesting this be fixed.  In the meantime, is there any workaround or way to make this work without waiting for it to be fixed in the Add-On SDK?

Thanks,
Ben

Jeff Griffiths

unread,
Jun 18, 2013, 11:36:09 AM6/18/13
to mozilla-la...@googlegroups.com
What's the bug #?

Also, can you try using net/xhr?

https://addons.mozilla.org/en-US/developers/docs/sdk/latest/modules/sdk/net/xhr.html
> --
> You received this message because you are subscribed to the Google Groups
> "mozilla-labs-jetpack" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mozilla-labs-jet...@googlegroups.com.
> To post to this group, send email to mozilla-la...@googlegroups.com.
> Visit this group at http://groups.google.com/group/mozilla-labs-jetpack.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Ben McCann

unread,
Jun 18, 2013, 3:46:39 PM6/18/13
to mozilla-la...@googlegroups.com
The bug # is 884189.  Using net/xhr worked for me. Thanks!!! I didn't realize that existed. Is there any reason there are two request APIs and I shouldn't just use net/xhr everywhere instead of sdk/request?


You received this message because you are subscribed to a topic in the Google Groups "mozilla-labs-jetpack" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mozilla-labs-jetpack/OGChDW7POzw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mozilla-labs-jet...@googlegroups.com.

To post to this group, send email to mozilla-la...@googlegroups.com.
Visit this group at http://groups.google.com/group/mozilla-labs-jetpack.
For more options, visit https://groups.google.com/groups/opt_out.


Reply all
Reply to author
Forward
0 new messages