Work is progressing steadily on libmxit_perl. Some new stuff is the PID.pm module that retrieves the product ID.
One small thing I ran into was the way that the Captcha image was sent. According to the protocol reference the captcha image is encoded in base 64 but I just could not decode the image correctly using MIME::Base64.
Turns out there is a difference between decoding base 64 for normal applications and HTTP applications. According to Wikipedia:
Using a URL-encoder on standard Base64, however, is inconvenient as it will translate the ‘+’ and ‘/’ characters into special percent-encoded hexadecimal sequences (’+’ = ‘%2B’ and ‘/’ = ‘%2F’). When this is later used with database storage or across heterogeneous systems, they will themselves choke on the ‘%’ character generated by URL-encoders (because the ‘%’ character is also used in ANSI SQL as a wildcard).
After some more Googling I found MIME::Base64::URLSafe by Kazuho Oku and could decoded the image correctly :
MIME::Base64::URLSafe – Perl version of Python’s URL-safe base64 codec
I have also transfered the Wiki and Subversion repository from the old Google code hosting. I believe devzone is a great idea since free software is nothing (and boring) without a community. Thanks to all the people who helped with the setup (nix, jaco and others) I find the devzone admins to be helpful and friendly responding almost instantaniously to any request for help.

0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.
You must be logged in to post a comment.