I'm trying to write a tool to use during contests that can fetch the input data from the contest and also submit the finished code and solutions. I've scavenged bits and pieces of the existing command line tool from 2012 which seems to be long abandoned.
The issue I am currently having is with fetching the input. I can't seem to get a valid csrf middleware token with which to fetch the data. My url request from the app: https://code.google.com/codejam/contest/6224486/dashboard/do/B-small-attempt4.in?cmd=GetInputFile&agent=website&filename=B-small-attempt4.in&input_id=0&problem=5686275109552128&csrfmiddlewaretoken=RzE1NcwzOWQzMWDmNwVhYmIyHjJjOGNhY2NjNjYxOGR8fDE0Mjg3ODE4OTI3MTUzNDU%3D The url request from the web page: https://code.google.com/codejam/contest/6224486/dashboard/do/B-small-attempt4.in?cmd=GetInputFile&problem=5686275109552128&input_id=0&filename=B-small-attempt4.in&agent=website&csrfmiddlewaretoken=MDJjMDJkYma4ZDI1YWZjOWFmMjE5MmNjZjMxY2U2YjB8MTEwNjI1Njc1Njs3ODc0MFw2Nzc2fDE0ijg3ODEwODM1MDgzOTA%3D (some characters altered, lengths kept intact) The only real difference is the length of the csrf middleware token, which is what makes me think that is the issue. I get the token from a url I scraped from the old command line tool: https://code.google.com/codejam/middleware?cmd=GetMiddlewareTokens&actions=GetInitialValues%2CGetInputFile%2CGetUserStatus%2CSubmitAnswer Anyone try something similar and have some pointers, or anyone from the team have any info that could help? -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/a1a56d53-6a68-4948-9b9a-739814cc2b2f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
