FUUUUUUUUUUUUUU MICROSOFT
Page 1 of 1
tainted4ever
VIP Member



Posts: 11336

PostPosted: Sun, 23rd Jan 2011 09:29    Post subject: FUUUUUUUUUUUUUU MICROSOFT
Quote:
/* IMPORTANT INFORMATION:
* HttpWebRequest has a bug where if a 302 redirect is encountered (such as from a Response.Redirect), any cookies
* generated during the request are ignored and discarded during the internal redirect process. The headers are in
* fact returned, but the normal process where the cookie headers are turned into Cookie objects in the cookie
* container is skipped, thus breaking the login processes of half the sites on the internet.
*
* The workaround is as follows:
* 1. Turn off AllowAutoRedirect so we can intercept the redirect and do things manually
* 2. Read the Set-Cookie headers from the response and manually insert them into the cookie container
* 3. Get the Location header and redirect to the location specified in the "Location" response header
*
* Worth noting that even if this bug has been solved in .Net 4 (I haven't checked) we should still use manual
* redirection so that we can properly log responses.


Basically, Microsoft fucked up with their implementation of HttpWebRequest in .NET framework, so I have to write my own cookie parser. Fuck, the shit I waste time on. Took me forever to track this down too Sad
Back to top
tainted4ever
VIP Member



Posts: 11336

PostPosted: Mon, 24th Jan 2011 03:31    Post subject:
X-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequestX-Requested-With: XMLHttpRequest

FUUUUUUUUUUUUUUUUUUUUCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK YOU AND YOUR FUCKING CUSTOM FUCKING HTTP HEADERS FUCKING AJAX FUCKING SHIT FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK

ok time to go to sleep


Sense Amid Madness, Wit Amidst Folly
Back to top
Ankh




Posts: 23342
Location: Trelleborg
PostPosted: Mon, 24th Jan 2011 07:28    Post subject:


shitloads of new stuff in my pc. Cant keep track of it all.
Back to top
ixigia
[Moderator] Consigliere



Posts: 65081
Location: Italy
PostPosted: Mon, 24th Jan 2011 14:58    Post subject:
Almost nobody can understand the reasons of your rants Tainted Razz
Back to top
garus
VIP Member



Posts: 34200

PostPosted: Mon, 24th Jan 2011 16:14    Post subject:
snip


Last edited by garus on Tue, 27th Aug 2024 21:41; edited 1 time in total
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Mon, 24th Jan 2011 16:31    Post subject:
Parsing a cookie shouldn't be any problem at all, no?!

Still microsoft fucking something this "simple" up is pretty interesting! I supposed that it took more time to think of work arounds and writing them down, then actually fixing the problem Laughing


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
zipfero




Posts: 8938
Location: White Shaft
PostPosted: Mon, 24th Jan 2011 17:16    Post subject:
I know how you feel man sometimes i pass on cookies too even thopugh they are delicious!!!

lol wut


8 out of 10 dentists prefer zipfero to competing brands(fraich3 and Mutantius)!
Back to top
tainted4ever
VIP Member



Posts: 11336

PostPosted: Tue, 25th Jan 2011 18:13    Post subject:
PumpAction wrote:
Parsing a cookie shouldn't be any problem at all, no?!

Still microsoft fucking something this "simple" up is pretty interesting! I supposed that it took more time to think of work arounds and writing them down, then actually fixing the problem Laughing


Actually it took me the most time to FIND the fucking problem, because it still blows my mind that something as BASIC as HANDLING THE FUCKING COOKIES WASN'T PROPERLY FUCKING IMPLEMENTED?

Who the fuck do they have testing the code over there? Mentally incapacitated monkeys? FUCK.

But I've calmed down a bit. Slept a bit. Should be fine now. I fixed the problem, but still have problems logging into Gmail. Expect additional rage by tonight.
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - The Bitching Session
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group