--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/918e1fda-ac9b-4a77-b93a-e0b233bddbf9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
var remote = {
url : http://username:password@hostname:4984/sync_gateway/
},push = {source : appDbName,target : remote,continuous : true}the same for pull. Then i use push and pull to call replication by http post.Adam
I use phonegap plugin with couchbase lite (similar to todo lite app)i use URL in remote properties:
I use phonegap plugin with couchbase lite (similar to todo lite app)i use URL in remote properties:var remote = {},
I'm not sure if it's relevant here, but while the username:password@ is relatively common and frequently does what you expect, it actually is not part HTTP standards.
3.1. Common Internet Scheme Syntax
While the syntax for the rest of the URL may vary depending on the
particular scheme selected, URL schemes that involve the direct use
of an IP-based protocol to a specified host on the Internet use a
common syntax for the scheme-specific data:
//<user>:<password>@<host>:<port>/<url-path>
Some or all of the parts "<user>:<password>@", ":<password>",
":<port>", and "/<url-path>" may be excluded. The scheme specific
data start with a double slash "//" to indicate that it complies with
the common Internet scheme syntax.
I've seen some things that do not support it. IIRC, it was removed and is recommended against in the HTTP URI scheme.
On Feb 11, 2014, at 1:30 PM, Matt Ingenthron <ma...@couchbase.com> wrote:I'm not sure if it's relevant here, but while the username:password@ is relatively common and frequently does what you expect, it actually is not part HTTP standards.It's defined in RFC 1738: Uniform Resource Locators, the specification of URL syntax:
3.2.2. Server-based Naming Authority URL schemes that involve the direct use of an IP-based protocol to a specified server on the Internet use a common syntax for the server component of the URI's scheme-specific data: <userinfo>@<host>:<port> where <userinfo> may consist of a user name and, optionally, scheme- specific information about how to gain authorization to access the server. The parts "<userinfo>@" and ":<port>" may be omitted. server = [ [ userinfo "@" ] hostport ] The user information, if present, is followed by a commercial at-sign "@". userinfo = *( unreserved | escaped | ";" | ":" | "&" | "=" | "+" | "$" | "," ) Some URL schemes use the format "user:password" in the userinfo field. This practice is NOT RECOMMENDED, because the passing of authentication information in clear text (such as URI) has proven to be a security risk in almost every case where it has been used.
This document updates and merges "Uniform Resource Locators" [RFC1738] and "Relative Uniform Resource Locators" [RFC1808] in order to define a single, generic syntax for all URI.