Pages: [1]   Go Down
Author Topic: HTTPS interfacing  (Read 3122 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 87
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 4
Posts: 42
Arduino rocks - Yeah Baby!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 87
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Logged

0
Offline Offline
Newbie
*
Karma: 4
Posts: 42
Arduino rocks - Yeah Baby!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 87
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: