Thread: XMLHttpRequest
View Single Post
Old 25-10-2007, 13:07   #1
Mr_love_monkey
Inactive
 
Mr_love_monkey's Avatar
 
Join Date: Jun 2003
Location: London way
Age: 49
Services: Sarcasm
Posts: 8,376
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
XMLHttpRequest

Ok, I'm stumped - and maybe someone here will know.

I've written a simple XMLRPC client in javascript, using XMLHttpRequest - and this works, I can contact the server, make an RPC, and get a result back - hurrah.

Now my problem comes from trying to pass in a cookie into the request

I do
Code:
request.setRequestHeader('Cookie','aParam=aValue');
which works in Firefox - however in IE7, it doesn't. There used to be a bug where you had to set the cookie twice for it to register in IE, but that doesn't work here.
I'm not getting an error, the cookies just aren't being passed through to the server.
I've tried the ActiveX version of XMLHttpRequest, as well as the new native version in IE7 - both have the same result - I've googled a fair bit but haven't found any answers....
Mr_love_monkey is offline   Reply With Quote