localhost

JavaWeb http协议的自我描述

会有一股神秘感。 提交于 2019-12-01 06:59:05
1.http协议的组成 http:规范那种协议 localhost、127.0.0.1:访问的ip地址(默认,根据自己的需求改变) 端口号:8080(默认,根据自己的需求改变) 工程:XXX 资源:可以是jsp,html,servlet 等等。 http://localhost:8080/工程名/要访问的资源/ http://localhost:8080/XXX/login.jsp 如: Request URL: http://localhost:8080/WebDemo/demo.html Request Method: GET(请求方式) Status Code: 304 (状态码) Remote Address: [::1]:8080(http版本和端口号) 来源: https://www.cnblogs.com/fetter/p/11665762.html

WebSocket协议与抓包

拥有回忆 提交于 2019-12-01 06:53:40
WebSocket协议 WebSocket并不是全新的协议,而是利用了HTTP协议来建立连接,它的目的是在浏览器和服务器之间建立一个不受限的双向通信的通道,比如说,服务器可以在任意时刻发送消息给浏览器 WebSocket连接必须由浏览器发起,因为请求协议是一个标准的HTTP请求,格式如下: GET ws://localhost:3000/ws/chat HTTP/1.1 Host: localhost Upgrade: websocket Connection: Upgrade Origin: http://localhost:3000 Sec-WebSocket-Key: client-random-string Sec-WebSocket-Version: 13 该请求和普通的HTTP请求有几点不同: GET请求的地址不是类似/path/,而是以ws://开头的地址; 请求头Upgrade: websocket和Connection: Upgrade表示这个连接将要被转换为WebSocket连接; Sec-WebSocket-Key是用于标识这个连接,并非用于加密数据; Sec-WebSocket-Version指定了WebSocket的协议版本 随后,服务器如果接受该请求,就会返回如下响应: HTTP/1.1 101 Switching Protocols Upgrade:

Meteor - accessing the app using public ip

扶醉桌前 提交于 2019-12-01 06:31:45
I can access the app using localhost:3000 but I am trying to test from mobile devices locally, without having to deploy it. But I couldn't access the site. I am allowing incoming request: sudo ufw status verbose Status: active Logging: on (low) Default: allow (incoming), allow (outgoing) New profiles: skip To Action From -- ------ ---- 3000/tcp ALLOW IN Anywhere 3000/tcp ALLOW IN Anywhere (v6) I found that my ip address is 128.84.125.239 and so I visit 128.84.125.239:3000 and nothing happens. This turned out to be an issue of using the right IP, or configuring the NAT of the router

Warning: mysqli_connect(): MySQL server has gone away

这一生的挚爱 提交于 2019-12-01 06:24:54
PHP 小白,写了一段连接数据库的代码,发现报错 <?php $username = "root"; $password = "Kepwd"; $hostname = "localhost:8080"; //connection to the database $dbhandle = mysqli_connect($hostname , $username , $password) or die("Unable to connect to MySQL "); echo "success<br>"; ?>系统里面装了IIS所以登录网页端的时候输入localhost( http://127.0.0.1/ ),出来的是IIS的界面,输入localhost:8080才是phpadmin的界面,于是以为连接的时候也是要这个名字,PHP默认的端口号是3036,可以直接写localhost即可。 来源: CSDN 作者: wel_leave 链接: https://blog.csdn.net/xiaoxiang22/article/details/100568170

Warning: mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password:

て烟熏妆下的殇ゞ 提交于 2019-12-01 06:18:59
Warning : mysqli_connect(): (HY000/1045): Warning : mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in D:\xampp\php\includes\myfun2.php on line 17 Error Access denied for user 'root'@'localhost' (using password: YES) ) in D:\xampp\php\includes\myfun2.php on line 17 Error Access denied for user 'root'@'localhost' (using password: YES) #1045 - Access denied for user 'root'@'localhost' (using password: NO) phpMyAdmin 尝试连接到 MySQL 服务器,但服务器拒绝连接。您应该检查配置文件中的主机、用户名和密码,并确认这些信息与 MySQL 服务器管理员所给出的信息一致。 需要修改D:\xampp\phpMyAdmin\config.inc.php文件,具体内容如下: $cfg[

Sql server 2000 连接测试

蓝咒 提交于 2019-12-01 06:07:44
1. Sql server 2000 数据库本身规定了其数据库连接 URL 的一般格式,如下: jdbc:sqlserver://[serverName[\instanceName][:portNumber]][;property=value[;property=value]] 之间无空格,其中: · jdbc:sqlserver:// (必需)称为子协议,且为常数。 · serverName (可选)是要连接到的服务器的地址。它可以是 DNS 或 IP 地址,也可以是本地计算机地址 localhost 或 127.0.0.1 。如果未在连接 URL 中指定服务器名称,则必须在属性集中指定。 · instanceName (可选)是 serverName 上要连接到的实例。如果未指定,则会连接到默认实例( master )。 · portNumber ( 可选)是 serverName 上要连接到的端口。默认值为 1433 。如果使用默认端口,则无需在 URL 中指定端口及其前面的 “:” 。 · property (可选)是一个或多个选项连接属性。有关详细信息,请参阅 设置连接属性 。可指定该列表中的任何属性。属性只能用分号( “;” )分隔,且不允许重复。 2. 连接实例写法有: A. 使用用户名和密码连接到本地计算机上的默认数据库: jdbc:sqlserver:/

Visual Studio 2010 - Change localhost to custom domain

前提是你 提交于 2019-12-01 06:02:42
How do I change so that debugging doesn't happen on localhost:randomNumber but on a custom domain like my.testsite.com:randomNumber? I've added the domain to the hosts file and I can manually change the url when debugging from localhost to my.testsite.com, but can I make VS start at my.testsite.com from the get-go instead of localhost? Yes... you do that in the project options. You can specify a custom startup URL as well as a fixed port if you want. The built-in VS server will follow whatever you type there, then your hosts file will take care of the mappings for you. 来源: https:/

Sending a file via form to email with Laravel (Localhost)

只谈情不闲聊 提交于 2019-12-01 05:27:11
Newbie to Laravel so be kind lol My config for mail.php is correct and emails are being received successfully for text inputs to gmail, but not sure exactly how to complete the task for files. I would appreciate some assistance or reference links. Thanks in advance!! Code in routes.php Route::get('/', function() { return View::make('form'); }); Route::post('/form', function() { $data = ['firstname' => Input::get('firstname'), 'username' => Input::get('username'), 'email' => Input::get('email'), 'resume' => Input::get('resume') ]; $rules = array( 'username' => 'Required|Min:7', 'email' =>

How do i map http://localhost:8080 to http://mysites in iis7?

血红的双手。 提交于 2019-12-01 05:13:26
Basically i want to be able to type in http://mysites and it show me my localsite rather than typing in http://localhost:8080/ ? I intend to do it a few times like http://localhost:8181 to http://mysites2 I thought you could do it via hosts file? This is all localy on my machine As stated before, you can edit the hosts file (or update a local DNS server), so that the names point to the desired ip addresses. Some browsers have trouble with cookies when there's no DOT in the name, so you may want to do something like mysites.local or mysites.ivor If there's something else running on port 80, You

eclipse 快速建立PHP调试环境

情到浓时终转凉″ 提交于 2019-12-01 04:57:58
在网上看了许多关于eclipse 建立PHP调试环境的文章,自己去尝试了一翻,但都没有成功,后来自己到Zend的官方去看,原来是版本的问题.现在提供完整的配置步骤.希望初学者能快 速建立好环境,把精力集中到代码而不是配置上.如果您看完还没有配置成功,您还可以点击此处查看FLASH视频. 我的环境如下:Windows-xp+Wamp(Windos Apache Mysql PHP集成安装环境)或者xampp(类似wamp). 1.准备工作 从网上下载wamp5_1.7,或者xampp-win32-1.6.5,参考地址: http://www.codepub.com/d/downpage.php?n=1&id=7656::1162764159 http://www.apachefriends.org/zh_cn/xampp-windows.html#1787 安装过程十分简单,wamp只需要点下一步下一步就可以,而xampp需要解压到盘符的根目录下,否则无法启动. 到Zend的网站下载 zenddebugger: http://downloads.zend.com/pdt/server-debugger/ZendDebugger-5.2.12-cygwin_nt-i386.zip eclipse: http://downloads-source.zend.com/pdt/all-in