crised / electrical

Electrical M2M software to get an Electrical Bill approximation
0 stars 0 forks source link

SSL support and Basic AUTH #8

Closed crised closed 10 years ago

crised commented 10 years ago

POST request should support SSL. Basic Authorization header must be filled to authenticate with the server.

rnicolau commented 10 years ago

I cannot seem to find a service that logs the POST requests like http://requestb.in/ that supports https. If you only need ssl then the code should work as it is, only use a https URL. If you need authentication as well then a working server should be up - ideally have the server accept http as well, at least temporary.

crised commented 10 years ago

ok. The server will be up next week. Can you at least leave commented the code that we're going to use then?

rnicolau commented 10 years ago

There are 2 parts here: SSL - should work without modifications. Authentication: Do you need it? If yes then should not be difficult, but I cannot code it blindly. I need the server to test.

crised commented 10 years ago

SSL, sure it works without mods?

I absolutely need Basic auth. Please try to advance. leave the code in comments. Do what you can.

rnicolau commented 10 years ago

For SSL I might need to disable the certificate verification to work.

crised commented 10 years ago

no mind. SSL will only be in server side, no client certificate.
Just keep researching, we need to advance, even if it's not directly with compiled code.