Posts: 618
Joined: Apr 2008
Reputation:
6
If you don't mind getting from trunk, i could probably hook up POST pretty quick.
We already have it supported in our fetchPage in the YouTube plugin(It uses it's own function for various reasons, same name though. Just for the added confusion it brings.)
The function definitely needs more features, but if you want to convert from urllib to fetchPage, feel free to post a code snippet with what you want done in urlilb2, and i'll see if i can integrate it into fetchpage in a non stupid way.
That is basically the only requirement i have for functions in fetchPage. They must not require a stupid implementation to work, or cause problems/complexities there are no use for. (Hence why the YouTube plugin uses its own function, that version is stupid and complex).
Posts: 618
Joined: Apr 2008
Reputation:
6
2011-12-12, 16:12
(This post was last modified: 2011-12-12, 16:45 by TobiasTheCommie.)
Ah yes, i've seen that. Never used it though.
ETA:
Had to do this for Vimeo anyways. So i've added Refering, Cookie and POST support in the latest trunk.
The Vimeo Plugin can perform a full login(And emulate the user agreeing to the XBMC application access) through the functions in version 0.9.1
Posts: 618
Joined: Apr 2008
Reputation:
6
Not only a lazy, but also a wise choice.
Posts: 618
Joined: Apr 2008
Reputation:
6
Hah, sorry bout that.
Updated the wiki.
Posts: 3,640
Joined: Sep 2009
Reputation:
121
Fair enough, I am sure that is good advice but I have spent several hours on the above, which should work according to everything I have read & understand - but it doesn't.
I have checked a manual POST using http live headers and it appears to be sending the same data, but it simply won't get me any results. So either they are somehow using something other than user agent to detect it's a programmatic submission, or I am missing an obvious error.
Grrrr.
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | Caber Toss | Switchback | XSqueezeDisplay | Kodi 2nd Display
Sorry, no help w/out a
*full debug log*.
Posts: 618
Joined: Apr 2008
Reputation:
6
Well, you are adding the headers differently from what i do.
Besides for that it looks fine.
Posts: 3,640
Joined: Sep 2009
Reputation:
121
Apparently I had to set the Host in the headers...now it works.
Again, though - I am loving this parseDOM thing - really, it's super easy.
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | Caber Toss | Switchback | XSqueezeDisplay | Kodi 2nd Display
Sorry, no help w/out a
*full debug log*.