How to do HTTPS upload?
bluecookiemonster
Registered Users Posts: 6 Big grins
Hi,
I've been working on some code (in C) for uploading and got most of the prototype working happily. I can get list of albums and upload images to an album of choice. I use OAUTH and v1.3.0 of the API. It works on both http and https with one exception. The uploads don't work on HTTPS. It appears the server upload.smugmug.com don't allow connections to the HTTPS port (443).
Is upload.smugmug.com supposed to work over HTTPS? If not, is there another way to securely upload images to smugmug?
Cheers!
/P
Reference http://api.smugmug.com/services/api/?method=upload
I've been working on some code (in C) for uploading and got most of the prototype working happily. I can get list of albums and upload images to an album of choice. I use OAUTH and v1.3.0 of the API. It works on both http and https with one exception. The uploads don't work on HTTPS. It appears the server upload.smugmug.com don't allow connections to the HTTPS port (443).
Is upload.smugmug.com supposed to work over HTTPS? If not, is there another way to securely upload images to smugmug?
Cheers!
/P
Reference http://api.smugmug.com/services/api/?method=upload
0
Comments
- Which upload method you are using
- What headers or parameters you are sending with the upload (don't include your API key!)
- Details about the error - do you get an HTTP response or does the connection close prematurely? If you get a response, what does it say?
Thanks!Sorcerer and API Guy at SmugMug
Hi,
Thanks for your response. I use the HTTP PUT method described on that link. Below is an example HTTP header (using non-secure HTTP). The problem I'm experiencing is a timeout connecting to https://upload.smugmug.com.
However, it doesn't matter what upload method I use as the server resets connection attempts to the HTTPS port (443). Check in Wireshark for yourself: https://upload.smugmug.com, only TCP RST coming back. So there's no TCP connection established and thus never any HTTP exchanged.
Cheers!
/P
Example HTTP headers, I've replaced information in Authorization and X-Smug-AlbumID with bogus data:
Sorcerer and API Guy at SmugMug
Thanks,
I see, that certainly explains it. I hope it's added and appreciate that you try push for it. I believe smugmug customers pay because we get exceptional service and SSL uploading protects our intellectual property and privacy, and gives us peace of mind that I think a paying customer deserves.
Thanks very much!
/P