Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

RestService must be done through SSL protocol. #4

Closed
wants to merge 1 commit into from

2 participants

@crsuarez

.../teamsite') must be requested with SSL protocol var client = new SP.RestService('https://oxida.sharepoint.com/teamsite'), SPO works with HTTPS authentication. ;)

@crsuarez crsuarez The service var client = new SP.RestService('http://oxida.sharepoint.…
…com/teamsite') must be requested with SSL protocol var client = new SP.RestService('https://oxida.sharepoint.com/teamsite'), SPO works with HTTPS authentication. ;)
3f1d68f
@lstak
Owner

P accounts in SPO use http, E accounts use https.

The example/testing was done with a P account

The code supports both http and https

@crsuarez

tnx. lstak I was wondering if you have some sample code for uploading attachments (like pdfs) to list-elements in sharepoint online. I'm stuck with this.

@lstak
Owner

no, you will need to use SP copy web service for that.

@lstak lstak closed this
@crsuarez

ok, thanks again. finally I make it work by using WebServices. Lists.asmx, authentication with ur token generation algorithm (I recoded it with java).

@lstak
Owner

Great!. Thanks for letting us know

@crsuarez

Finally I put my solution here in github: https://github.com/ingcarlos/Office365Connection

@lstak
Owner

Thanks for your follow-up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 18, 2012
  1. @crsuarez

    The service var client = new SP.RestService('http://oxida.sharepoint.…

    crsuarez authored
    …com/teamsite') must be requested with SSL protocol var client = new SP.RestService('https://oxida.sharepoint.com/teamsite'), SPO works with HTTPS authentication. ;)
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.md
View
2  README.md
@@ -31,7 +31,7 @@ An object of this class represents a REST Service client for the specified Share
Example:
````
-var client = new SP.RestService('http://oxida.sharepoint.com/teamsite')
+var client = new SP.RestService('https://oxida.sharepoint.com/teamsite')
````
### client.signin (username, password, callback)
Something went wrong with that request. Please try again.