Hi Anthony,

I have just created https://github.com/greasemonkey/greasemonkey/issues/1521 because I think this is a bug.

Otherwise I have always to use two different methods (xmlhttpRequest & GM_xmlhttpRequest) in the same GM script. It would be much easier to just need one of them. This would reduce my code complexity a lot.

Hope you can fix it soon.

Tnx in advance.


Regards,
Robert

-------- Original-Nachricht --------
Betreff: [greasemonkey-users] Why is GM_xmlhttpRequest not sending cookies?
Von: Robert <[email protected]>
An: [email protected]
Datum: Tue Feb 21 2012 00:39:25 GMT+0100
Hi,

currently I use XMLHttpRequest to communicate with the site my script is designed for. I use it on a site that needs authentication (by using cookies). It works as expected. Now I tried the same request using GM_xmlhttpRequest because it is a bit easier to use. Esp. using onload instead of monitoring |readyState|.

But the site always returned its login page. So I found out that *no cookies are send when I use GM_xmlhttpRequest. Why?*

Of course I could read them from document.cookie and add them as headers. But why not sending them by default if already present?


Or did I miss something?


Regards,
Robert

--
You received this message because you are subscribed to the Google Groups "greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.

--

  _ oRobert H.  <mailto:[email protected]>        http://kurzlink.de/Enkidu70
 |<)_/#
 TT<T   [email protected]  <mailto:[email protected]>


"Du wirst da hinein geboren was Du nicht bist, um zu erfahren wer Du wirklich bist!"

--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to