https://bugzilla.wikimedia.org/show_bug.cgi?id=36137

--- Comment #6 from Arthur Richards <[email protected]> 2012-04-20 
22:02:29 UTC ---
(In reply to comment #5)
> The HTTP class seems to be a gatekeeper for MWHttpRequest. I don't know if
> MWHttpRequest original intention was for it to be called directly or not, but
> I'd do it through HTTP.

I see what you mean - however the HTTP class doesn't let me control the
cookieJar in MWHttpRequest. Basically, I've put together a very lightweight
(currently) single-purpose MW Api client in a MW extension which can post to
remote wikis, which means I need to be able to persist login information (hence
my need for the cookieJar). I'll play around a bit with the HTTP class though
and see what I can/can't do.

Regardless, if the MWHttpRequest is looking for $this->method in all uppercase,
it probably should ensure that values are getting set in all uppercase.
Defensive programming ftw.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to