Go Down

Topic: HTTP Server running with Ethernet library =] (Read 1 time) previous topic - next topic

bubulindo

#5
Nov 17, 2011, 08:37 pm Last Edit: Nov 17, 2011, 08:42 pm by bubulindo Reason: 1
Amazing... another thread with the same question.

I have replied to RogerLu a reply with a solution for what you want. There is also a thread asking for that not long ago in the forum, most likely started by RogerLu. Try giving him a shout.

It's not hard at all, the registers are there, you only need to add the right method.

Here's the thread:

http://arduino.cc/forum/index.php/topic,78209.0.html

Again, I have already looked it up for RogerLu, so it may be a nice idea to get that from him.
Eu não sou o teu criado. Se respondo no fórum é para ajudar todos mediante a minha disponibilidade e disposição. Responder por mensagem pessoal iria contra o propósito do fórum e por isso evito-o.
Se realmente pretendes que eu te ajude por mensagem pessoal, então podemos chegar a um acordo e contrato onde me pagas pela ajuda que eu fornecer e poderás então definir os termos de confidencialidade do meu serviço. De forma contrária toda e qualquer ajuda que eu der tem de ser visível a todos os participantes do fórum (será boa ideia, veres o significado da palavra fórum).
Nota também que eu não me responsabilizo por parvoíces escritas neste espaço pelo que se vais seguir algo dito por mim, entende que o farás por tua conta e risco.

Dito isto, mensagens pessoais só se forem pessoais, ou seja, se já interagimos de alguma forma no passado ou se me pretendes convidar para uma churrascada com cerveja (paga por ti, obviamente).

simkard

In fact, for now, i'm using the BASIC AUTH method for authentication.
It doesn't require the use of REMOTE IP ADDRESS and therefore, i was totally n00b when i asked the question about gathering the remote IP of the client connecting for authenticating him.

It was clearly non-sense at all !
The BASIC AUTH is actually perfect because it works perfectly and is really easy to implement.
On the other side, BASIC AUTH on a NON-SSL connection is some kind of problematic because it is possible to do "man in the middle" attacks for capturing the BASE64 hash on the packets that flows from each HTTP request of an authenticated client to the server.
When the HASH is captured, it is very easy to decode and authenticate as the originating client.

But, hey ! We can't do SSL on the arduino because it lacks CPU power (and probably RAM).
So BASIC AUTH is pretty cool for now.

I will work also on FORMs AUTH as it is pretty cool too.
But for now, i'm trying to optimize my code, and try to choose a very good way for parsing values on POST/GET requests to update the ones running in Arduino's RAM.
I saw the Webduino project at start of my coding and this project use JSON/RESTful interface which seems to be XML compatible.

See you ;)

simkard

Ok guys, i'm back with my project ...

I let time pass since i hadn't put my hands on the arduino IDE (last time was when the 1.0 was still in beta/RC) !

I adapted my code to run on the new IDE (new libraries like Ethernet, SD and SPI), by the way, it wasn't so hard to do.
I'm actually commenting the code to (eventually) release it here for everybody to improve it :)


Let me some days and i hope i will be able to post it !


Bye !

zoomkat

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   8)

simkard


There was discussion below on a method to get the remote IP.

http://arduino.cc/forum/index.php/topic,82416.msg619420.html#msg619420



Sorry i did not edit the topic subject ...

-> By the way, did you read the last message of this post ?  :smiley-mr-green:

Go Up