I am attempting to setup a provisioning environment for new SOHO users. What I would like to do is have the new SOHO users order a Cisco 871W, and when it gets to their house, I want them to run a custom setup script I am writing that checks the current IOS version, uploads new one if necessary, completes appropriate configurations, etc.
This is all working very well with the exception of the code upload portion. To give you an example:
User launches a web browser and opens my custom script that uses xmlhttprequest to get the following URL:
The script gets the response, parses it, determines if new code is necessary, and if so, launches a new xmlhttprequest to this URL:
The problem is that the source tftp URI (tftp://10.10.10.2/file.bin) gets all the forward-slashes converted to spaces by the router. I cannot figure out how to send a "/" in the request.
I have tried to escape the / with a \ like so: tftp:\/\/10.10.10.2\/file.bin but then it converts both "\" and "/" to spaces...
I have tried to send hex encoded:
http://10.10.10.1/level/15/exec/-/copy/tftp:%2F%2F10.10.10.2%2f/file.bin/flash:/CR but it still converts the %2F to a space...
Any help appreciated.