Interfacing

enc28J60 and Arduino

7 434
Today’s tutorial is about a request by Martin: write a sketch to access to a protected area (usingusername and password) of a website.
Basic Authentication
The simplest authentication method HTTP protocol supports is named basic authentication.
If you try to access to a secure area, the server responds to your request with code 401, asking the browser to specify a valid username and password. Usually, the browser displays a dialog for inserting the requested values:
Username and password are joined in a string, with a colon between them (utente:password). This string is then base64 coded and sent to the server using an HTTPheader:
<strong>Authorization: Basic</strong> stringa_base64
For example if your username is luca and the password is MyS3cr3t, you can use an online converter to get the correct string for the Authorization header:
Server configuration
You need to configure your webserver to enable basic authentication on a folder. Most web servers support the configuration through .htaccess files, saved in the same folder.
First, prepare a file with users and their passwords; this file is usually named .htpasswd. Use an online tool to encode the data and type the resulting string in your file; then upload it in the folder to be protected:
Now create a new .htaccess file and paste the following configuration:
AuthType BasicAuthName "Secure folder"AuthUserFile /htdocs/demo/secure/.htpasswdRequire valid-user
With AuthType you configure the authentication type (“basic”), while with AuthName you can specify a descriptive name for the secure area.
You must specify the .htpasswd location, using its absolute path. You may find it using a simple php script.
At last, you can configure the webserver to authenticate any valid user included in your .htpasswd file (“valid-user”) or specify the name of single authorized users with Require user username.
Upload the .htaccess file to the folder too:
Arduino
The complete sketch is available in my GitHub’s repository.
First, the authentication string (already base64 encoded) is defined as a constant:
[color=white !important]
[color=white !important]?

1

char authorization[] PROGMEM = "bHVjYTpNeVMzY3Izdb==";




The request (GET) to the webserver contains the Authorization header:
[color=white !important]
[color=white !important]?

1

2

3

4

Stash::prepare(PSTR("GET /demo/secure/ HTTP/1.1" "\r\n"
    "Host: $F" "\r\n"
    "Authorization: Basic $F" "\r\n"
    "\r\n"), website, authorization);



When the response is received, Arduino checks if it contains the value 401 (that means a new authentication request, possibly because your credentials were invalid) or 200 (ok):
[color=white !important]
[color=white !important]?

1

2

3

4

if(strstr(reply, "HTTP/1.1 401") != 0)
  Serial.println("Authorization required ");
else if(strstr(reply, "HTTP/1.1 200") != 0)
  Serial.println("Access granted! ");



Here are two screenshots about the sketch running…
For more details,please refer to original post
http://www.lucadentella.it/en/2013/08/26/enc28j60-e-arduino-15/

Thanks for sharing. I hope this can be also implemented on Lemaker products...

xiaoou  
20180424 xiaoou
polo ralph lauren
tods outlet
nike shoes outlet
mulberry handbags
longchamp pas cher
oakley sunglasses wholesale
rolex watches for sale
pandora outlet
kobe shoes
canada goose jackets
air jordan release dates
cheap jordans
coach outlet online
cheap snapbacks
coach factory outlet
uggs outlet
air max 2015
coach outlet online
oakley sunglasses wholesale
coach handbags
michael kors outlet clearance
swarovski outlet store
chelsea jersey
oakley sunglasses wholesale
ugg outlet online
polo outlet
polo ralph lauren shirts
polo outlet
nike air max 90
tory burch outlet online
ralph lauren polo
longchamp outlet
nike shoes outlet
michael kors outlet online
coach outlet online
ugg boots clearance
nike shoes
adidas wings
nike air max 90
asics running shoe
oakley sunglasses uk
mbt shoes
uggs clearance
uggs outlet
nike outlet online
air jordan shoes
polo outlet online
hermes online
canada goose jackets outlet
ferragamo outlet
nba jerseys wholesale
ugg boots
coach outlet
coach outlet
ray ban sunglasses
true religion jeans
oakley sunglasses
fitflops outlet
tory burch handbags
louis vuitton outlet
cleveland cavaliers jersey
cheap oakley sunglasses
michael?kors?handbags
san antonio spurs jerseys
true religion outlet
cheap ray ban sunglasses
christian louboutin outlet
mlb jerseys
denver broncos jerseys
fitflops sale clearance
true religion jeans
kate spade outlet online
fitflops sale clearance
cheap oakley sunglasses
michael kors outlet clearance
cavaliers jerseys
ferragamo shoes
pandora outlet
polo ralph lauren
oakley sunglasses
canada goose coats
bucks jerseys
coach factory outlet
coach outlet store
nike shoes
coach outlet online
burberry canada
uggs on clearance
kate spade outlet
canada goose jackets
prada sunglasses
coach outlet store online
longchamp pas cher
canada goose outlet
michael kors factory outlet
kobe bryants shoes
canada goose
coach outlet store online clearances
mac cosmetics
pistons jerseys
michael kors outlet clearance
michael kors
michael kors outlet online
kevin durant shoes
christian louboutin shoes
michael kors handbags
coach outlet
lacoste polo shirts
canada goose jackets clearance
ralph lauren pas cher
cheap ray ban sunglasses
michael kors outlet
cheap jordan shoes
ugg boots for women
cheap oakley sunglasses
nike nba jerseys
air jordan shoes
pandora charms
canada goose coats
spurs jerseys
christian louboutin
christian louboutin shoes
michael kors outlet online

yyy66  
qzz0519
pandora charms
swarovski outlet
clippers jerseys
ugg outlet
oakley sunglasses
canada goose outlet
adidas nmd
longchamp handbags
cheap jordans
polo ralph lauren
michael kors outlet
uggs outlet
warriors jerseys
nike air max
cheap jordans
coach outlet
cheap jordans
michael kors outlet
fitflops sale
supreme clothing
basketball shoes
true religion outlet
ugg boots
nike factory outlet
pandora jewelry
air jordan 3
coach outlet online
rockets jerseys
air huarache
coach outlet
columbia sportswear
golden state warriors jerseys
ugg outlet
new balance shoes
air max 90
cheap jordans
michael kors outlet
cazal sunglasses
ray ban sunglasses
polo shirts
longchamp solde
wizards jerseys
ray ban sunglasses
chrome hearts outlet
cheap jordans
michael kors handbags
canada goose jackets
polo outlet
fitflops sale clearance
pacers jerseys
valentino outlet
coach outlet
pandora charms
coach outlet
pandora charms
polo ralph lauren
polo ralph lauren
louboutin pas cher
longchamp outlet
canada goose coats
ferragamo outlet
canada goose outlet
canada goose outlet
soccer jerseys
coach outlet
michael kors outlet
coach handbags
minnetonka outlet
polo ralph lauren
cheap jordans
michael kors outlet
true religion jeans
coach canada
prada shoes
michael kors outlet
oakley sunglasses
canada goose outlet
ray ban sunglasses
coach outlet online
fitflops sale
barbour outlet
cheap jordans
cheap nhl jerseys
suns jerseys
jordan shoes
nike blazer pas cher
swarovski outlet
oakley sunglasses
uggs outlet
burberry outlet
visvim shoes
reebok outlet store
polo ralph lauren
montblanc pens
michael kors handbags
canada goose parka
kate spade outlet
michael kors outlet
nike presto
coach outlet
le coq sportif shoes
burberry outlet
prada sunglasses
michael kors outlet
nike roshe one
coach outlet
polo ralph lauren
nike store uk
jack wolfskin
true religion jeans
coach outlet
tory burch outlet
michael kors
coach outlet
canada goose jackets
uggs outlet
oakley sunglasses
michael kors outlet
nike trainers
birkenstock sandals
nobis outlet
coach outlet
world cup jerseys
swarovski outlet
ugg outlet
mulberry outlet
polo ralph lauren
coach outlet
ray ban sunglasses
nike outlet
real madrid jersey
michael kors outlet
cleveland cavaliers jersey
mulberry handbags
ysl outlet
ray ban sunglasses
herve leger outlet
mizuno running shoes
coach outlet store online
canada goose jackets
canada goose jackets
knicks jerseys
longchamp handbags
true religion jeans
michael kors uk
canada goose outlet
polo ralph lauren
longchamp handbags
ferragamo outlet
christian louboutin outlet
christian louboutin outlet
off white
coach outlet online
michael kors
palladium boots
canada goose jackets
mavericks jerseys
ray ban sunglasses
kobe shoes
hermes birkin
ray ban sunglasses
fitflops outlet
ray ban sunglasses
mac makeup
heat jerseys
air huarache
coach factory outlet
air jordan retro
michael kors outlet
canada goose outlet
pandora charms
burberry outlet
canada goose outlet
coach outlet
canada goose outlet
camel shoes
cheap jerseys
nfl jerseys wholesale
michael kors outlet
fitflops sale clearance
true religion jeans
chelsea jersey
ugg outlet
stephen curry shoes
oakley sunglasses
oakley sunglasses
canada goose jackets
michael kors outlet
dc shoes
barcelona jersey
coach outlet
nba jerseys
yeezy boost
nike roshe
pandora charms
ralph lauren polo shirts
nike store
pandora jewelry
kate spade outlet
coach outlet online
tods outlet
ugg outlets
michael kors
merrell shoes
cheap mlb jerseys
lebron james shoes
michael kors
christian louboutin outlet
hermes outlet
longchamp solde
dior outlet
pelicans jerseys
air max 90
michael kors outlet
uggs outlet
moncler jackets
pandora jewelry
michael kors outlet
michael kors outlet
michael kors handbags
canada goose outlet
michael kors outlet
mulberry bags
jeep shoes
moncler outlet
timberwolves jerseys
chicago blackhawks jerseys
lacoste polo shirts
adidas uk
air force 1
oakley sunglasses
salomon shoes
ralph lauren polo shirts
reebok trainers
fitflops
bulls jerseys
pandora charms
five fingers shoes
mulberry handbags
ralph lauren polo shirts
nba jerseys
kings jerseys
michael kors wallets
swarovski outlet
true religion jeans
michael kors outlet
ray ban sunglasses
canada goose outlet
cheap jordans
michael kors outlet online
canada goose jackets
coach outlet online
air jordan release dates
tory burch outlet
adidas trainers
dolce and gabbana
pandora charms
converse shoes
oakley sunglasses
ugg boots clearance
kevin durant shoes
uggs outlet
canada goose
ugg outlet
moncler jackets
air jordan 4
jordan shoes
ugg outlet
nfl jersey wholesale
links of london
hermes outlet
ugg outlet
yeezy boost
kate spade outlet
keen shoes
air jordan 4
air max uk
coach outlet
ugg boots
nike air max 90
michael kors outlet
raptors jerseys
air max 90
coach outlet canada
supra shoes
spurs jerseys
adidas nmd
puma outlet
moncler outlet
canada goose jackets
ubiq shoes
grizzlies jerseys
air max 2017
polo ralph lauren
true religion jeans
oakley sunglasses
kate spade outlet
oakley sunglasses
nuggets jerseys
magic jerseys
ray ban sunglasses
pandora outlet
coach handbags
true religion jeans
michael kors outlet
jordan shoes
ugg outlet
ferragamo outlet
pandora charms
hawks jerseys
true religion jeans
uggs
birkenstock outlet
ray-ban sunglasses
coach outlet online
longchamp pliage
nike shoes
michael kors outlet
cheap jordans
air jordan shoes
canada goose outlet
dansko shoes
true religion jeans
louboutin shoes
canada goose jackets
coach factory outlet
mulberry handbags
tory burch outlet
nhl jerseys
ray ban sunglasses
burberry outlet
longchamp outlet
ferragamo shoes
nhl jerseys
michael kors outlet
san antonio spurs jerseys
coach outlet
lakers jerseys
polo ralph lauren
nets jerseys
canada goose outlet
mulberry bags
christian louboutin outlet
soccer shoes
pandora charms
jordan shoes
michael kors
manolo blahnik outlet
adidas wings
pistons jerseys
coach outlet
kate spade outlet
supreme uk
ugg boots
christian louboutin shoes
cheap mlb jerseys
kate spade outlet
ed hardy clothing
michael kors outlet
fred perry polo shirts
oakley sunglasses
prada handbags
jordan shoes
adidas outlet
oakley sunglasses wholesale
longchamp outlet
ray ban sunglasses
nike air force 1
polo ralph lauren
swarovski crystal
futbol baratas
manchester united jersey
polo ralph lauren
canada goose outlet
nba jerseys
michael kors outlet
fitflops sale clearance
ugg outlet
canada goose outlet
ralph lauren pas cher
lacoste soldes
true religion uk
canada goose outlet
nike foamposite
football shirts
oakley sunglasses
jordan shoes
michael kors outlet
cheap snapbacks
ugg boots
air max trainers
pandora charms sale clearance
michael kors handbags
denver broncos jerseys
lakers jerseys
pandora outlet
tory burch outlet
cheap jordans
canada goose outlet
canada goose outlet
ugg outlet
yeezy boost 350
christian louboutin outlet
marc jacobs outlet
kate spade outlet
asics shoes
nike air max 2015
tory burch outlet
canada goose jackets
oakley sunglasses
cheap jordans
ferragamo shoes
tory burch outlet
oakley sunglasses
true religion outlet
nike shoes
cheap football shirts
longchamp handbags
moncler outlet
coach outlet online
ugg boots
balenciaga sneakers
mbt shoes
oakley sunglasses
ralph lauren polo
coach outlet
canada goose jackets
michael kors handbags
polo ralph lauren
jordan shoes
clarks shoes
christian louboutin outlet
ray ban sunglasses
wellensteyn jackets
coach outlet online
christian louboutin outlet
coach outlet online
polo outlet
thunder jerseys
trailblazers jerseys
bottega veneta outlet
moncler outlet
ray ban sunglasses
ralph lauren outlet
mulberry outlet
ugg outlet
true religion jeans
celtics jerseys
ugg outlet
oakley sunglasses
76ers jerseys
longchamp bags
coach outlet
kappa clothing
prada outlet
ferragamo outlet
polo outlet
hornets jerseys
denver broncos jerseys
cheap jordans
soccer jerseys
true religion outlet
true religion outlet
cavaliers jerseys
polo outlet
jordan shoes
swarovski crystal
canada goose jackets
oakley sunglasses
mcm outlet
air max 90
christian louboutin outlet
ugg outlet
chrome hearts outlet
kate spade outlet
pandora charms
coach outlet
ray ban sunglasses
michael kors outlet
ferragamo outlet
golden goose sneakers
fitflops shoes
coach outlet
simulation shoes
polo outlet
hermes belt
nike shoes
ugg boots
oakley sunglasses
bucks jerseys
air max 90
jazz jerseys
michael kors outlet
coach factory outlet
michael kors outlet
air jordan shoes
michael kors outlet online
ray ban sunglasses
oakley sunglasses wholesale
oakley sunglasses
cheap jerseys
michael kors outlet online
uggs outlet
giuseppe zanotti outlet
tory burch outlet
longchamp pas cher
adidas outlet
canada goose jackets
true religion jeans
canada goose outlet
ray ban sunglasses
ecco shoes
pandora charms
kobe bryant shoes
tory burch outlet
kobe 9
canada goose outlet
nike outlet
canada goose outlet
oakley sunglasses
fitflops
polo outlet
mulberry handbags
ugg outlet
saucony shoes
mont blanc pens
air jordan 12
cheap nfl jerseys
pandora
cheap jordans
michael kors outlet
qzz

jin523
miami heat
nike factory
salomon
polo ralph lauren
issey miyake
polo ralph lauren
michael kors outlet
air jordan shoes
coach outlet
tory burch outlet
coach outlet store online
hugo boss outlet
pandora
coach outlet store online
nhl jerseys wholesale
moncler jackets
pandora jewelry outlet
pandora jewelry
pandora charms
cheap snapbacks
pandora jewelry
ralph lauren outlet
nike air jordan
dsquared
manolo blahnik
canada goose jackets
adidas yeezy
nike soldes femme
moncler outlet
nike blazer low
true religion outlet store
nike outlet
superdry uk
coach outlet online
skechers factory outlet
chrome hearts clothing
nike air huarache
off white shoes
nike factory store
adidas yeezy
supreme outlet
nike outlet store
coach outlet store online
pandora
adidas shoes
true religion jeans
titans jersey
christian louboutin shoes
coach outlet online
kate spade sale
nike air max 2017
asics sneakers
pandora
canada goose outlet
nike shoes outlet
oakley sunglasses wholesale
coach outlet online
nike requin
pandora jewelry
longchamp bags
super dry
off white clothing
hermes belt
christian louboutin
cheap oakley sunglasses
ralph lauren polo
oakley sunglasses wholesale
asics shoes
christian louboutin shoes
ralph lauren outlet
coach outlet store online
coach outlet store online
nike air huarache
nfl jerseys wholesale
nike blazer pas cher
adidas superstar women
moncler outlet
kate spade sale
michael kors outlet
canada goose jackets
moncler outlet
manolo blahnik outlet
michael kors outlet
coach outlet online
san francisco 49ers jerseys
ecco shoes
online nike shoes 75 off
air huarache
fitflops sale
coach outlet store online
bottega veneta
ed hardy
canada goose jackets
coach factory outlet
michael kors outlet clearance
nike air max 95
new york knicks
pandora outlet
pandora charms
coach outlet online

20186.14chenjinbei
flops
cheap jordan shoes
air max 270
kate spade
mont blanc
fitflops
jordans
mishka clothing
jimmy choo shoes
camisetas de futbol replicas
timberland boots
adidas football boots
coach outlet online
supra shoes
malone souliers mules
fussball trikots
supreme
ralph lauren
ferragamo shoes
burberry canada
christian louboutin
asics running shoes
nfl jerseys wholesale
air max 97
red bottoms
fitflop sandals
ralph lauren
puma slides
manchester united jersey
air max 90
true religion jeans
camisetas de futbol baratas
beats by dre
coach outlet online
nike epic react
y-3 shoes
links of london
ralph lauren
nike air max
kate spade handbags
oakley sunglasses
jordan 3
cheap jerseys
nike flip-flops
air jordan 14
light up shoes
nike dunks
new balance
converse shoes
cheap nfl jerseys
adidas yeezy 350
nike blazer
ray ban sunglasses
nike lunarglide
air max
ferragamo outlet
air jordan 11
nike shox
michael kors handbags
adidas jeremy scott
jordans
coach factory outlet
ralph lauren uk
ray ban outlet
jordan 4
air max 95
balance shoes
coach handbags
ralph lauren
miu miu shoes
air max
coach outlet store
michael kors outlet
breitling watches
nike air force
ralph lauren
carnival shoes
vans shoes
adidas slides
christian louboutin shoes
nike tn
balenciaga shoes
kobe 12
running shoes
burberry outlet
air max 2017
air max 1
harden vol 1
air force 1
roshe run
cheap mlb jerseys
adidas nmd
juicy couture outlet
superdry clothing
ferragamo
nike shoes
wholesale nfl jerseys
huarache
michael kors outlet clearance
jordan
cartier jewelry
christian louboutin outlet
air max plus
mac cosmetics
prada handbags
coach outlet store online
cheap nfl jerseys
under armour outlet
dior handbags
belstaff jackets
marc jacobs
pandora charms
michael kors
michael kors outlet online
nike blazer
polo ralph
jordan 5
hermes outlet
coach factory outlet
celine outlet
coach outlet
hermes birkin bag
converse shoes
mulberry handbags
jordan xx9
nike sb
off-white clothing
cheap soccer jerseys
swarovski
tory burch outlet
longchamp
converse uk
nike revolution
nike uk
maillot de foot pas cher
flip-flops
polo outlet
nike shoes for men
ralph lauren
polo outlet
michael kors taschen
tag heuer watches
michael kors outlet store
soccer shirts
air max 2018
air jordan
adidas outlet store
basketball shoes
montblanc fountain pens
barcelona jersey
jordan 8
coach
michael kors handbags
ray ban sunglasses
pandora jewelry canada
coach factory outlet
true religion jeans
prada bags
timberland boots
supreme outlet
baseball jersey
bvlgari rings
adidas stan smith
kate spade outlet online
suicoke sandals
cheap ray bans
oakley sunglasses
mont blanc pens
kate spade
oakley sunglasses
fitflops outlet
cheap nhl jerseys
adidas shoes
adidas flip flops
off-white clothing
coach handbags
coach factory outlet online
kobe 11
nike cortez
nike outlet store
coach factory outlet online
hermes kelly bag
mbt shoes
jordan 6
cheap soccer jerseys
beats by dre
cheap nfl jerseys
longchamp outlet
pandora outlet
vibram five fingers
hermes
air max
nike kyrie 3
supreme uk
adidas yeezy
jordan
nike free run
louboutin
lebron 15
pandora jewelry
coach outlet online
polo ralph lauren
adidas superstar
maglie calcio
snapbacks wholesale
red bottom shoes
prada handbags
hollister outlet
true religion jeans
soccer jersey
cheap mlb jerseys
longchamp outlet
valentino shoes
manolo blahnik shoes
pandora charms
nike roshe
nike factory outlet
balenciaga shoes
ralph lauren uk
giuseppe zanotti shoes
air max
timberland boots
air jordan
burberry outlet online
michael kors handbags
michael kors handbags
jordan pas cher
nike outlet online
alexander mcqueen shoes
nfl jerseys
tory burch bags
scarpe mbt
oakley vault
van cleef & arpels jewelry
air huarache
coach outlet online
yeezy 500 blush
vans shoes
christian louboutin
longchamp handbags
cheap nba jerseys
harden vol 2
bcbg
mlb jerseys
asics
"nfl jerseys
"
yeezy shoes
stuart weitzman shoes
michael kors uk
timberland outlet
ralph lauren outlet
jordan shoes
longchamp
nike free run
hermes uk
ralph lauren outlet
michael kors canada
new balance sandals
michael kors outlet
givenchy handbags
adidas outlet
ralph lauren
jordan 12
undefeated shoes
nike presto
fingerlings monkey
jordan 1
oakley sunglasses
nhl jerseys
air jordan
flip-flops
breguet watches
pandora uk
wedding shoes
fila sneakers
oakley sunglasses
oakley sunglasses wholesale
true religion jeans
nike mercurial vapor
michael kors outlet store
prada outlet online
[bcheap nfl jerseys
ray ban
coach outlet
burberry outlet store
adidas stan smith
michael kors outlet
jordan shoes
dansko shoes
mcm bags
birkenstock
ray ban sunglasses
maglie calcio a poco prezzo
cheap replica watches
ray ban sunglasses
polo outlet
tory burch outlet
pandora jewelry canada
ray ban
stussy hoodie
oakley canada
baseball bats
adidas wings
true religion jeans
columbia sportswear
michael kors outlet
nfl jerseys
prada
ray ban sunglasses cheap
nike shoes
true religion
coach outlet
kate spade
longchamp handbags
pandora jewelry
nike free
kate spade outlet
fitflop sandals
fitflops sale clearance
nike outlet
nike free
kevin durant shoes
jordans
adidas nmd
louboutin
longchamp
adidas uk
birkenstock sandals
gucci slides
coach factory outlet
mizuno running shoes
michael kors handbags
ralph lauren
ralph lauren uk
adidas ultra boost
ralph lauren polo shirts
louboutin
rolex watches
louboutin outlet
michael kors outlet
puma fenty sandals
louboutin
coach outlet online
audemars piguet
tory burch uk
nike uk
bottega veneta
nike outlet
air jordan
michael kors outlet
tod's shoes
nike outlet store online
dolce and gabbana
herve leger dresses
christian louboutin outlet
cheap oakley sunglasses
Fußballtrikots günstig
birkenstock outlet online
jordan shoes
adidas outlet store
maillot de foot
coach outlet online
cheap ray ban sunglasses
coach outlet online
timberland outlet
coach
coach outlet
coach factory online
kate spade
curry shoes
air jordan
supreme paris
swarovski jewelry
tory burch
jordan retro
nike tennis
nike outlet
ray ban
balenciaga sandals
20186.14chenjinbei

You have to log in before you can reply Login | Sign Up

Points Rules