Go Down

Topic: HTTPS interfacing (Read 4440 times) previous topic - next topic

adumas

Hi... I've been reading the "Making THings Talk Book" and have the arduino posting php pages via Processing...

However, I now want to post to a web server that is secure, e.g., the url is prefixed by https...

How does one do this? Any small snippet of code would be appreciated.

AndyL

I think trying to add HTTPS support into the arduino is not going to be possible due to te size and complexity of the SSL libraries. What you could do is make the requests to the regular server and use a PHP script to proxy the request to the HTTPS server.

Hope this helps

AndyL

adumas

Oh... And what is involved in that? Any quick example?


AndyL

OK, had a quick google and test, found a script at http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/ that you stick on your not https server, you give it a url parameter that includes https and it returns the results. The URL parameter must be encoded so that the parameters are passed to their ultimate destination.

As an example, I've stuck the script onto one of my sites running PHP and told it to return the paypal-business page hat uses https - http://blog.thiseldo.co.uk/proxy.php?url=https%3A//www.paypal-business.co.uk/

Its not going to return full pages and images, just the text or html output from the request you submitted, which is probably what you are looking for.

Hope this helps

Andy

adumas

Thank you very much... I'll test it out and let you know...

Go Up