post

Redirect after posting a HTML form

强颜欢笑 提交于 2020-01-16 18:25:14
问题 Is there anyway to redirect the user after posting a HTML form? I have a form which looks like this <form action="/URL/" method="post"> <input type="radio" name="answer" value="W" />W<br /> <input type="radio" name="answer" value="X" />X<br /> <input type="radio" name="answer" value="Y" />Y<br /> <input type="radio" name="answer" value="Z" />Z<br /> <input type="submit" /> </form> Is there anyway I can redirect the user to a new page after they click the submit button? I found a bit of

Why am I getting 500 Internal Server Error when calling post rest api via python request?

余生长醉 提交于 2020-01-16 17:24:25
问题 I'm trying to call a post rest API using python requests library. I'm able to get a proper response when I request using postman. When I tried to call it using python request library I get an internal server error. import requests url = "http://192.188.9.146:9886/getcontext/" payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"project\"\r\n\r\ndaynight\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"file\"; filename

基于POST的SQL注入(一)

六眼飞鱼酱① 提交于 2020-01-16 13:38:28
在sql-lib中进行 1、打开bp抓包 2、发送至 repeater 中进行注入,在用户名处添加反斜扛测试内部SQL语句 3、分析: 根据报错,当输入用户名为 111\ 时,错误提示在密码为 222' 的错误,初步断定这是因为用户名处的 \ 与其闭合单引号被转译为普通字符,因此无法进行闭合,导致密码的起始单引号被作为用户名的闭合符号,造成密码处的单引号无从闭合。 因此初步断定,SQL语句为: select uname, passwd from table where uname='xxxx' and passwd='xxxx'; 因此当用户名为 111\ 时,此时的查询 uname = ’ 111\' and passwd= ’ ,将后边的查询语句作为用户名也输入了进去。 4、继续在用户名处添加注入信息 成功登陆。 查看源代码: 来源: CSDN 作者: 工科学生死板板 链接: https://blog.csdn.net/qq_43968080/article/details/103981061

GET POST方法长度限制

冷暖自知 提交于 2020-01-16 10:02:07
GET POST方法 长度 限制 1. Get 方法 长度 限制 Http Get 方法提交的数据大小 长度 并没有限制, HTTP 协议规范没有对URL 长度 进行限制。这个限制是特定的浏览器及服务器对它的限制。 如:IE对URL 长度 的限制是2083字节(2K+35)。 下面就是对各种浏览器和服务器的最大处理能力做一些说明. Microsoft Internet Explorer (Browser) IE浏览器对URL的最大限制为2083个字符,如果超过这个数字,提交按钮没有任何反应。 Firefox (Browser) 对于Firefox浏览器URL的 长度 限制为65,536个字符。 Safari (Browser) URL最大 长度 限制为 80,000个字符。 Opera (Browser) URL最大 长度 限制为190,000个字符。 Google (chrome) URL最大 长度 限制为8182个字符。 Apache (Server) 能接受最大url 长度 为8,192个字符。 Microsoft Internet Information Server(IIS) 能接受最大url的 长度 为16,384个字符。 通过上面的数据可知,为了让所有的用户都能正常浏览, URL最好不要超过IE的最大 长度 限制(2083个字符),当然,如果URL不直接提供给用户

SubSonic 3.0新特性

十年热恋 提交于 2020-01-16 10:01:38
1. 引言 大多数数据访问程序包提供从“数据库外”访问,意思是这种方式将您的数据库的表在应用程序中用对象表示。这种方式可以在大多数案例中工作,但是关系理论与面向对象编程将变的不一致,即“错误的匹配”。 许多人喜欢只使用类工作,但不想关心数据库的具体实现。为了释放他们的工作,同时又不开放数据库设计内部实现。 SubSonic 创建了一个免费基类且单独存在的,作为纯粹的 CLR 对象(也称为 POCO )。 如果你是这些人之一,你不需要特别关心的数据库结构的,那么 SimpleRepository 是给你准备的。 2. 使用 SimpleRepository 使用 Rails 的有关工作的有趣的事情之一就是你可以建立从代码和专注于您的应用程序的数据库。许多开发者发现这种非常自由(包括我自己在内)。它的一个缺点,就是你需要学习的迁移代码,你需要知道它是如何工作的。这对我们来说,不是一个好的办法,而是一直希望 Rails 将“只知道”我们要迁移的东西。 这就是为什么我们想使用 SubSonic 的自动迁移。这里的目标是 , 如果您在构造 SimpleRepository 对象时设置一个标志,告诉它迁移模式:自动创建和同步数据库,其关键是在构造函数中设置适当的选项 , 如: var repository = new SimpleRepository

GET POST方法长度限制

旧城冷巷雨未停 提交于 2020-01-16 09:57:42
链接地址: http://blog.csdn.net/blueling51/article/details/6935901 1. Get方法长度限制 Http Get方法提交的数据大小长度并没有限制,HTTP协议规范没有对URL长度进行限制。这个限制是特定的浏览器及服务器对它的限制。 如:IE对URL长度的限制是2083字节(2K+35)。 下面就是对各种浏览器和服务器的最大处理能力做一些说明. Microsoft Internet Explorer (Browser) IE浏览器对URL的最大限制为2083个字符,如果超过这个数字,提交按钮没有任何反应。 Firefox (Browser) 对于Firefox浏览器URL的长度限制为65,536个字符。 Safari (Browser) URL最大长度限制为 80,000个字符。 Opera (Browser) URL最大长度限制为190,000个字符。 Google (chrome) URL最大长度限制为8182个字符。 Apache (Server) 能接受最大url长度为8,192个字符。 Microsoft Internet Information Server(IIS) 能接受最大url的长度为16,384个字符。 通过上面的数据可知,为了让所有的用户都能正常浏览, URL最好不要超过IE的最大长度限制(2083个字符)

Tomcat Post请求大小限制

£可爱£侵袭症+ 提交于 2020-01-16 09:57:23
理论上讲,POST是没有大小限制的。HTTP协议规范也没有进行大小限制,起限制作用的是服务器的处理程序的处理能力。 如:在Tomcat下取消POST大小的限制(Tomcat默认2M); 打开tomcat目录下的conf目录,打开server.xml 文件,添加 maxPostSize="0" (设为0是取消POST的大小限制) tomcat8该值设置为0时表单数据将都为null,需要设置为-1才能取消大小限制。 <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" maxPostSize="-1"/> 来源: https://www.cnblogs.com/format-ch/p/9324294.html

How enable console log in VUE-CLI during development

ぐ巨炮叔叔 提交于 2020-01-16 08:48:08
问题 Hello there community. I have been trying to figure out how to console.log('whatever') during learning some VueJs development in my methods in order to understand some behaviour of whatever I am doing here. I understand that there are some questions already asked here and I have scoped into eslint documentation to try an figure this out... I just cannot actually understand what should I do. This is my methods: methods: { submitData() { this.$http.post('https://vue-testing-8a2de.firebaseio.com

POST request created in vba brings back nothing as result

被刻印的时光 ゝ 提交于 2020-01-16 08:36:43
问题 I've written a very tiny script in vba using POST request. However, when I run it, I get nothing as result except for a blank message. I've tried to fill in the request parameter accordingly. Perhaps, I can't notice which should be included in the parameter. The page I'm dealing with contains several images in it's right panel. When an image is clicked the request about which i'm talking here is sent to the server and brings back the result and displays new information concerning its' flavor

Angular resetting csrf token

为君一笑 提交于 2020-01-16 08:28:33
问题 I'm using Angular 6 and having a hard time integrating Django's csrf with Angular's. I found in this thread that Django changes the token on login which, since I can both register and login using post requests with the same new session but not post anything after login seems to make sense. The question becomes how I go about resetting the csrf token on login. The way the csrf is handled now in my Angular app is shown in the below code for my app module: import { BrowserModule } from '@angular