w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Rebol 3 - How do I submit a username and password through https?
Currently, high-level support (using username:password@ in URLs) for authorization is not implemented in Rebol 3's HTTP scheme. However, you can easily send the HTTP Authorization header directly (for HTTP "basic" auth): read [ scheme: 'https host: "mail.google.com" path: "/mail/feed/atom" headers: [Authorization: join "Basic " enbase/base "user:pass" 64] ]

Categories : Http

could not read Username for 'https://github.com': No such device or address
I think you need to set the git config via the command line. See the github setup documentation: https://help.github.com/articles/set-up-git#platform-all $ git config --global user.name "Your Name Here" $ git config --global user.email "your_email@example.com" Etc.

Categories : GIT

create a JMeter https request with credentials (username and password)
It depends on authentication policy, if it's Basic Auth then it would be done through an Http Authorization Manager If it's form based, then passing them as parameters in Http Request will do it. If you don't know your option is to record through browser and JMeter Proxy Server: http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf

Categories : Http

How to specify the username that SSH should send to the remote system using the git GUI
You can do it while you're adding a new remote. (ctrl+a is the short command for that, the menus should be something like remotes->add remote). So if you want to do it in git-gui I guess you've to remove the remote and then add a new one. However, that command is a one-time thing to execute in git-bash. I hardly see the problem with that. An other way is to manually edit .git/config which includes all the configuration for your remotes.

Categories : GIT

Connecting to remote machine without username/password
You have to use interop to use the Credential Management API in .NET: http://www.microsoft.com/indonesia/msdn/credmgmt.aspx

Categories : C#

Access to remote Windows PC with username and password in path
Try this. net use \myserver /user:username password You have few ways to get it done via C#. Easy and dirty one is to wrap the above command in System.Diagnostics.ProcessStartInfo Another way is to authenticate the user via ActiveDirectory, and then he can access the shared drive. You can find tons of C# code samples to do this... Hope this helps.

Categories : C#

Connecting to a Remote Server on a different domain -- how do I enter the username and password?
According to Microsoft it should be possible. You need to authenticate against the remote domain, though, e.g. like this: computer = "..." username = "OTHERDOMAINuser" password = "..." Set locator = CreateObject("WbemScripting.SWbemLocator") Set wmi = locator.ConnectServer(computer, "rootcimv2", username, password) wmi.Security_.ImpersonationLevel = 3

Categories : Vbscript

nodejs can't send request to remote https server
Did you compile from source? If openssl libs were not available at the ./configure step of compiling, node will not be able to connect to any SSL end-point. See this post for info on compiling node: node js can't install right on my Ubuntu computer

Categories : Node Js

Apache HttpClient and remote files in URL with https scheme
There seem to be a couple of problems: You registered the Scheme to use 3920 as the default port, which is a non-standard port number for HTTPS. If the server is actually running on that port, then you would have to access using this URL in the browser: https://www.thedomain.with:3920/my_resource.pdf. Since the URL that you use in the browser does not include the 3920 port, then the server will be running on the default port of 443, so you should use change new Scheme("https", 3920, sf) to new Scheme("https", 443, sf). It appears that the CN in your server's certificate doesn't match its hostname, which is causing the SSLPeerUnverifiedException. In order for this to work, you would need to use the SSLSocketFactory(TrustStrategy, HostnameVerifier) constructor and pass a verifier that does

Categories : Java

Storing encrypted username/password for authentication on remote website without OAuth
I would suggest to use encryption framework with good security record instead of "popular encryption algorithms" definition of "somewhere safe" is rather vague, but I think if both you and your users are fine with it — it's ok. Make sure that your users understand how you store their passwords so they are prepared to possible consequences.

Categories : PHP

PHP mysqli->connect to remote host inserts local hostname with username
Have you got remote access enabled for the user? If not, login as root or another administrative user to your mysql and issue: GRANT ALL PRIVILEGES ON *.* TO ‘USERNAME’@‘IP’ IDENTIFIED BY ‘PASSWORD’; Change: The *.* stands for All schemas, all tables.. Specific access to one schema (recommended): SchemaName.* username to the user that you want access to ip Change to the IP that the server is on identified by password substitute password for the users password. Then issue: FLUSH PRIVILEGES or restart the entire mysql service

Categories : PHP

git clone username problems. warning: remote HEAD refers to nonexistent ref, unable to checkout
The problem you experience is due to nonexistent master branch in remote repository. Better explained here: warning: remote HEAD refers to nonexistent ref, unable to checkout

Categories : GIT

How to Pass Username and Password to horde WebMail from Another Web Page
There are several ways to do that : Curl (http://www.php.net/manual/en/book.curl.php) PHP Session (http://www.php.net/manual/en/book.session.php) Single Sign On, there are several systems for that, simpleSAMLphp is quite easy to setup. You must have good knowledge in server administration to setup this kind of system.

Categories : PHP

pass username, pwd, server information in expect shell scripting
To read command line arguments from expect: $argc - number items of arguments passed to a script. $argv - list of the arguments. $argv0 - name of the script. This was take from this site If you want more help with expect then google about tcl because expect is an extension to tcl language

Categories : Bash

How to pass username and password in the localhost url to connect with the memcached in Java?
without explicit use of http://code.google.com/p/memcached/wiki/SASLAuthProtocol there is no need for username+password, did you check the service is running on port 11211?

Categories : Java

How do I pass debug and logging options through Faraday to Net::HTTP or Net::HTTPS
Where you initialize the Faraday connection, you can pass things through to the underlying adapter. For example, I use this behavior in one of my clients, albeit with Excon instead of Net::HTTP, but you should be able to adapt: excon_options = {} excon_options.merge!(instrumentor: instrumentor) if instrumentor @connection = Faraday::Connection.new(url: url) do |builder| builder.adapter :excon, excon_options end The excon_options hash in this case is the format of a hash that I would pass to the Excon connection object if I weren't using Faraday. You should be able to do something similar with Net::HTTP

Categories : Ruby

Server returned HTTP response code: 401 for URL (pass username and password in URL to access a file)
You need to send the Authorization header in your HTTP request, in it you should send username and password encoded in base64. more info here: http://en.wikipedia.org/wiki/HTTP_headers

Categories : Java

How to pass through window asking for basic auth credentials that appears when click link redirecting from HTTP to HTTPS?
FirefoxProfile profile = new FirefoxProfile(); profile.SetPreference("network.http.phishy-userpass-length", 255); profile.SetPreference("network.automatic-ntlm-auth.trusted-uris", hostname); Driver = new FirefoxDriver(profile); hostname is your URL (example.com) then try to Driver.Navigate().GoToUrl(http://user:password@example.com);

Categories : Selenium

Trying to pass and return data from remote js file
In your external file you create a function which you never call. In your HTML script you create a function as a plugin to jQuery which you also never call. You don't show where you load jQuery (if you do). It's really not clear what these snippets are supposed to be doing. You could try this: <script src="/Scripts/CustomScripts/test.js"></script> <script> var test = 1; var retVal = displayDay(test); alert(retVal); </script>

Categories : Javascript

How can I pass parameter to remote command in a treetable?
I solved this problem with <p:remoteCommand name="doWhatYouWant" action="#{managedBean.doAction}" /> ... <p:commandLink value="Invoke action" onclick="doWhatYouWant( [{name:'n', value:'#{node.name}'}, {name:'t', value:'#{node.type}'}])" /> In the supporting bean: public void doAction() { FacesContext context = FacesContext.getCurrentInstance(); Map<String, String> map = context.getExternalContext().getRequestParameterMap(); String name = map.get("n"); // name attribute of node String type = map.get("t"); // type attribute of node ... }

Categories : JSF

htaccess /profil.php?username=username to /username
You need to add a RewriteCond to stop the infinite loop of redirects. Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !(profil.php) RewriteRule ^(.*)$ /profil.php?username=$1

Categories : Htaccess

return (mysql_result(mysql_query("SELECT COUNT('ID') FROM 'users' WHERE 'username' = '$username'") , 0) == 1) ? true : false;
In MySQL, identifier quote character is the backtick " ` " (not single quote) as stated here: http://dev.mysql.com/doc/refman/5.0/en/identifiers.html. Please update your query to use back ticks on table name and column names as follows: "SELECT COUNT(`ID`) FROM `users` WHERE `username` = '$username'" Because the query did not succeed, your mysql_query returned false which is the reason for that error. Please have a look at the documentation for mysql_query here http://php.net/manual/en/function.mysql-query.php and check the "Return Values" section thoroughly. Also as you mention tutorial then I believe you are beginning to learn PHP with DB development, in which case its better to start learning either mysqli http://php.net/manual/en/book.mysqli.php or PDO http://php.net/manual/en

Categories : PHP

How to validate a Username field which can take an email as username but also can use alphanumeric characters
Create two regex expressions and use || for truth validation. You need to append +.[A-Z]{2,4} to the email one for the proper domain extensions. it accepts 2-4 character domain extensions. You can adjust the 4 accordingly. ^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}$

Categories : Javascript

django-guardian - meaning of (User, 'username', 'username')
From the docs: Optionally, instances for which check should be made may be passed as an second argument or as a tuple parameters same as those passed to get_object_or_404 but must be provided as pairs of strings. So if you want to check permission of one User model instance, you can pass the tuple in order (ModelName, argname, varname) (note that argname and varname should be in pair) like: (User, 'username', 'username') It's the same as parameters in get_object_or_404() function: get_object_or_404(User, username=username) And similar if you have tuple (User, 'username', 'username', 'groups__name', 'group_name')... You can check the source code for more understanding: https://github.com/lukaszb/django-guardian/blob/master/guardian/decorators.py#L74

Categories : Django

Socket.io - How to prompt for username, and save the username in an array?
You can just add this to your server code: var users = []; game_room.sockets.on('connection', function (socket) { socket.emit('entrance', {message: 'Welcome to the chat room!'}); socket.emit('entrance', {message: 'Your ID is #' + socket.id}); socket.on('adduser', function (name) { users.push(name); // attempt to clean up socket.once('disconnect', function () { var pos = users.indexOf(name); if (pos >= 0) users.splice(pos, 1); }); }); // ... }); (it won't work if 2 users choose the same name.)

Categories : Node Js

Wrong username given to my template when modifing the username
There are two ways to solve the problem: Using a separate field for the new username, and Using a form model. Separate Field You could create a separate field in your User class to hold the new username and copy it to the actual username after validation and before persisting — the same way you're currently doing with passwords. Form Model Basically, a form model is an object that embeds the actual model and those extra fields like newUsername or plainPassword. You would go this route if you don't want to clutter the actual model class with these extra fields.

Categories : Symfony2

Facebook like button https issue: protocol mismatch from http and https
Reviewing the js code on Facebook there are multiple urls containing hard coded strings for http://static .../rsrc.php it's possible those are the files triggering the error. This may be something Facebook needs to update. On a side note, it may be possible to download that js file from Facebook and store it on your server and remove the hard coded http string. I would test this further but I am on my phone at the moment.

Categories : Facebook

when using https, https can't find codeigniter controllers. Running Centos
Change this line : RewriteRule ^(.*)$ index.php?/$1 [L] to : RewriteRule ^(.*)$ /index.php?/$1 [L] The .htaccess would otherwise be redirected relatively to a index.php in the join folder, which off course is not there.

Categories : PHP

Once https page is visited, all subsequent pages are served from https
ok I think I found the reason. The links I am visiting are relative, so "/forum" for example. Once https is in the browser it seems like visiting a relative address is leaving the root as https:// and appending the relative path. I believe the fix here will be to use the full path for the link instead of relative.

Categories : Htaccess

How do you enable https and http->https redirects in ring / compojure
It's possible to serve HTTPS with clojure, but it's much more popular to put nginx or something like that in front of your ring server. If you can figure out how to configure jetty, though, run-jetty clearly supports SSL.

Categories : Http

How can i convert links to https when server providing https?
If you remove the http:// portion and use instead: <script type="text/javascript" src="//static.monstermmorpg.com/js_files/jquery-1.9.1.min.js"></script> It should request based on the current scheme being used.

Categories : C#

Redirect all http AND https non-www URLS to https://www.xyz.com via htaccess
In case anyone from the future (HELLO PEOPLE OF THE FUTURE) stumble across this, I asked the same question and had it answered over at Server Fault. Short version: impossible. Long version: http://serverfault.com/questions/523199/redirect-all-http-and-https-non-www-urls-to-https-www-example-com-via-htaccess

Categories : Htaccess

Can https fallback to http and security level of https
No, HTTPS never falls back to HTTP automatically. It would take deliberate action by the user. If you're just going to a web page by putting its URL into the address bar, this is easy; for form submission it's harder. Yes, sending plain text over SSL is fine. In fact, sending a hashed password doesn't really increase security much at all -- if someone manages to sniff the connection and gets the hashed password, that's all they need to be able to login to the site. It has one small advantage: if the user uses the same password at multiple sites, learning the hashed password for one site doesn't help them get into another site that uses a different (or no) hash. And it's not likely to be feasible to send salted hashes, since the client doesn't know the salt. A cnonce adds an extra level

Categories : Asp Net

VBA Get Username on OSX (or Mac alternative to Environ("username"))
You can use AppleScript to return the Username and run that from VBA. The following function should do the trick. Function GetUserNameMac() As String Dim sMyScript As String sMyScript = "set userName to short user name of (system info)" & vbNewLine & "return userName" GetUserNameMac = MacScript(sMyScript) End Function

Categories : Osx

HTTPS GET request to https://www.googleapis.com/plus/v1/people/me
Create a Google_Oauth2Service object (put it under the $plus initialization), like: $client = new Google_Client(); $plus = new Google_PlusService($client); $oauth2 = new Google_Oauth2Service($client); and after succesfully authenticating the client use: $userInfo = $oauth2->userinfo->get(); $email = $userInfo['email'];

Categories : PHP

Display username when adding comments My SQL cannot record the username, only display the current login user
In your code the $conn is not initialized anywhere. Initialize it like this before trying the query. $conn = mysqli_connect("localhost", "my_user", "my_password", "world"); Check the php manual for proper usage. Hope that helps :)

Categories : PHP

How to pass output from remote script to local script in bash
On your local script, in your ssh line, you can redirect some of the outputs to a file with tee: ssh ... | tee -a output.log If you want to filter which one goes to the output.log file, you can use process substitution: ssh .... | tee >(grep "Some things you want to filter." >> output.log) Besides grep you can use other commands as well like awk.

Categories : Bash

IHttpHandler to redirect "https://example.com" to "https://www.example.com"?
If you use IIS7, you might want to try URL Rewrite Module. http://www.4guysfromrolla.com/articles/072810-1.aspx http://www.jppinto.com/2010/03/automatically-redirect-http-requests-to-https-on-iis7-using-url-rewrite-2-0/

Categories : Asp Net

Local Wordpress install with Remote Database. Error: Remote DB Appears to be already installed
Did you include 'http://' in your URL? Refer : http://wordpress.org/support/topic/you-appear-to-have-already-installed-wordpress-1 Thanks.

Categories : Wordpress

Can I migrate remote SVN to local disk without exporting dmp files on remote server?
You can dump only latest revision range with the -r switch. svnadmin dump REPOS_PATH [-r LOWER[:UPPER]] [--incremental] [--deltas] and then you can load this increment in the new repository. Reference: http://svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.dump.html Example: http://www.vioan.ro/wp/2007/07/31/dumprestore-for-subversion-repository/

Categories : Svn



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.