./scan.py file.jpg 300
Found scanner 'HP LaserJet MFP M28w (4F952B)._uscan._tcp.local.' at 'NPI4F952B.local.'
Scanner information:
2.63
HP LaserJet MFP M28w
VNC3C76616
564E4333-4337-3636-3136-84A93E4F952B
http://NPI4F952B.local.
http://NPI4F952B.local./ipp/images/printer.png
300
2550
300
3508
1
RGB24
Grayscale8
Photo
Text
TextAndPhoto
image/jpeg
application/pdf
application/octet-stream
image/jpeg
application/pdf
application/octet-stream
200
200
300
300
600
600
sRGB
Document
Photo
Preview
TextAndGraphic
600
600
disabled
enabled
true
Our scan request:
2.6
0
0
2550
3508
escl:ThreeHundredthsOfInches
Platen
RGB24
300
300
Content-Length: 0
Cache-Control: no-cache, no-store, must-revalidate
Location: http://192.168.100.8:80/eSCL/ScanJobs/kh4djjux-33mz-w8se-1001-wx0r90yf
Server: ApolloLedmServer/1.0
Connection: keep-alive
Scanning to: file.jpg
Traceback (most recent call last):
File "./scan.py", line 120, in
data = urllib2.urlopen(req)
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 503: Service Unavailable