How to pass More than two credentials in xcode using Afnetworking? - ios7.1

i have tried to pass three arguments in single url,the url belongs to WSDL by using this url we are connect the server

Related

How to do I connect from my cmd to snowflake account using snowsql

I am trying to connect using snowsql from cmd but it fails every time
enter image description here
The reason for this issue is that the account name looks incorrect. It should have the region details where it is deployed, except for the case when it is deployed on US West (Oregon) region and should not be including "snowflakecomputing.com"
For eg: if the actual URL which you use from browser to access SF UI is abcd.region.snowflakecomputing.com, then account name to be used for connecting from Snowsql would be : abcd.region
If not, then get the exact identifier from the following doc link for specific regions: https://docs.snowflake.com/en/user-guide/admin-account-identifier.html
and try again connecting from SnowSQL.

Camel SFTP username has special character

I have to modify an existing camel SFTP project made in Camel (2.10.2). I am working with Camel for the first time and don't have any knowledge on this.
There are some URI's already configured in uri="sftp://username#hostname?password=XXX&option=value.." format which are working fine.
I have to add URI for new host in the same camel. The problem is username for new host name has # in it (eg: user#name).So new URI configuration does not work in existing format.
I tried to read some manuals and based on those, below are configurations tried so far :
uri="sftp://user#name#hostname?password=XXX&option=value.." -> It gave 'host must be specified and not empty' error.
uri="sftp://RAW(user#name)#hostname?password=XXX&option=value.." -> Not able to connect
uri="sftp://hostname?username=RAW(user#name)&password=XXX&option=value.." -> Not able to connect
uri="sftp://hostname?username=user#name&password=XXX&option=value.." -> Not able to connect
uri="sftp://hostname?username=user#name?password=XXX&option=value.." -> Not able to connect
uri="sftp://hostname?username=user#name?password=XXX&option=value..#amp;binary=true" -> Not able to connect
uri="sftp://hostname?username=RAW(user#name)?password=XXX&option=value..#amp;binary=true" -> Not able to connect
Its seems RAW(XXX) works in higher version of camel but not in 2.10.2. I have also verified connectivity with hostname and there is no issue with it.
Can somebody help with correct URI format that can work in camel 2.10.2.
Username: user#name, password: XXX, hostname: XXX.YYY.ZZ

How to pass\ in URL in windows authentication?

To handle windows authentication, one way to handle such scenario is by passing credentials in URL itself as shown below :
driver.get('http://domain\username:password#abc.com')
my user name contains a domain ex. domain\Username. However, when i pass https://domain\username:password#example.com URL it gets converted to '/'. I am using C# selenium bindings. Please suggest a solution to get this working.
You need to replace any special character using its ASCII value .
For \ , it's 092
Also, I believe browsers have dropped support for this syntax of passing credentials along with url and i am sure it won't work if you are using latest browser version of chrome/firefox.
You should instead allow browser to show credential alert and handle it using selenium.
IAlert alert = webDriver.SwitchTo().Alert();
alert.SetAuthenticationCredentials(userId,password);
alert.Accept(); //not sure if this line is required.

Calling a #RPC method outside of volttron

Say I have a running volttron agent with a #RPC decorated method (if that's relevant). Are there any ways to call that method from outside of the volttron platform? (In my case from a django web server)
An agent may register endpoints on the VOLTTRON web service. A callback may be setup for the endpoint as needed.
The web service must be enabled and the agent needs to pass "enable_web=True" to the base agent constructor.
You can find the documentation and examples here: http://volttron.readthedocs.io/en/develop/specifications/webframework.html
Along with what kyle-monson mentions, you also have to run Volttron using the bind argument. This will expose the registered endpoints on the bind arg given.
e.g `volttron -vv --bind-web-address "https://127.0.0.1:7080"
OR specify the bind-web-address in the ~/.volttron/config
[volttron]
message-bus = rmq
bind-web-address = https://127.0.0.1:7080
Then you can send HTTP POST request to https://127.0.0.1:7080/rpc-method-name
rpc-method-name in the request URL being the registered method using self.vip.web.register_endpoint("/rpc-method-name", self.call_back_method_for_endpoint)
The call back method takes in two parameters "env" and "data"
For more details on this two parameters check the docs here

Read localstate by chrome-extension

I'm looking for a way to pass arguments from selenium to my chrome-extension in the moment of creating new selenium session. I could pass all arguments using setLocalState, but I have no idea how to read these options by chrome-extension.
Currently what I'm doing is:
create new selenium session with my chrome-extension
open specific url and add all arguments in query string. Chrome is waiting for this url and then parse query string to get these arguments.
Is it possible to pass arguments from selenium and read them by chrome-extension without doing any extra step apart from creating new session with arguments passed in Capabilities?
It's possible In Firefox using profile preferences, but cannot find any way to do that in chrome

Resources