I’m trying to upload a picture with https using post method.
I already know how to upload a picture to a http server.
To upload the picture as https do I just need to put add an s on http?
thanks much
ex:
NSString *urlString = @"http://192.168.10.30:8080/thek_save/JSP/file_upload.jsp";
// setting up the request object now
NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
[request setURL:[NSURL URLWithString:urlString]];
[request setHTTPMethod:@"POST"];
You can use the same code of uploading picture to HTTP on POST. just replace starting “HTTP://” with “HTTPS://”.
You should have valid SSL certificate installed on HTTPS connection