Skip to content

Instantly share code, notes, and snippets.

@mnp
Created February 19, 2015 18:00
Show Gist options
  • Select an option

  • Save mnp/e6a054e46d9b246ad734 to your computer and use it in GitHub Desktop.

Select an option

Save mnp/e6a054e46d9b246ad734 to your computer and use it in GitHub Desktop.
Ask Brother for download link to ADS-1500W scanner firmware. An XML response will be sent back.
#!/bin/bash
URL=http://update.brother.co.jp/KNE_bh7_update_nt/ifax2.asmx/fileUpdate
cat <<EOF | curl -v --data-ascii @- -X POST -H "Content-Type:text/xml" $URL
<?xml version="1.0" encoding="UTF-8" ?><REQUESTINFO><FIRMUPDATETOOLINFO><FIRMCATEGORY>MAIN</FIRMCATEGORY><OS>WIN_NATIVE</OS><INSPECTMODE>1</INSPECTMODE></FIRMUPDATETOOLINFO><FIRMUPDATEINFO><MODELINFO><SELIALNO>U63595B4G999999</SELIALNO><NAME>ADS-1500W</NAME><SPEC>0001</SPEC><DRIVER>EWS</DRIVER><FIRMINFO><FIRM><ID>FIRM</ID><VERSION>D1406061056:0D75</VERSION></FIRM></FIRMINFO></MODELINFO><DRIVERCNT>1</DRIVERCNT><LOGNO>2</LOGNO><NEEDRESPONSE>1</NEEDRESPONSE></FIRMUPDATEINFO></REQUESTINFO>
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment