Version Declarationpython3.6.5Django-2.0.6djangorestframework-3.8.2mysqlclient-1.3.121. Write a login interface, not much to say, directly on the codelogin_models.py#-*-coding:utf-8from django.db import models# Create your models here.# User table
Get request: A GET request sends a request for data to the server to obtain information, which, like a database's select operation, simply queries the data, does not modify, add data, and does not affect the contents of the resource, that is, the
Use the get inside the Vue to get the file data, when the usage of getting the file data isUsing get to get PHP file execution results is in the previous case of the Get method to pass in the PHP file, and then set the data corresponding to PHP, as
Sometimes post or get pass data we do not know what the form, it may be in JSON format or simply submitted to the data, this time we can write him into the text, we can see the data passed in what format. $val = ""; $currentDateTime = date ('
Recent projects have encountered such a problem, the AJAX call page to get the value of the time, that is, when using jquery,. Get method in Firefox, Chrome browser can get the value and display, but under IE is not, this is mainly because of IE
1.get method is shown, after the URL will be followed by parameters, security is not good, but the higher performance of the Post method is implicit, high security. 2.get fetch or send data size is limited, generally less than 1KB post fetch or send
Workaround 1:In Global settings:JS Code
$.ajaxsetup ({
Async: false
});
$.ajaxsetup ({
Async: false
});
Then use the post or Get methodJS Code
$.get ( "Register/registerstate", {test:12},
Both post and get are optional values for form property method, and the default value of method is get, and the main difference is:
1. At the client, the Get mode submits the data through the URL, after submitting the address in the Address bar as
This article illustrates the common methods used by PHP to submit post and post with Ajax data. Share to everyone for your reference. The specific methods are as follows:
In many cases we will not have any problems with Ajax, but sometimes
1. Get is the data that is fetched from the server and post is the data sent to the server.
2. Get is the URL where the parameter data queue is added to the Action property of the submission form, and the value corresponds to the field one by one in
I backed by a large number of paper books, you can make a variety of paper books electronic, there is a need to q:1481449626The 3rd edition of iOS programming for Xcode 4.3 Big Nerd Ranch Training SeriesAuthor: joeconway,aaronhillegass; Xiawei pages:
If you want to use the Fsockopen function we must set the Allow_url_fopen = on in the php.ini to the open state.
Cases
Fsockopen () Example
code is as follows
copy code
$fp = Fsockopen ("www.example.com",
The examples in this article describe the use of functions such as I (), U (), $this->post () in thinkphp. Share to everyone for your reference. The specific methods are as follows:
The following methods can be used to accept data from a form in a
Similar to the DreamHost such host service providers, is to show the use of fopen. Using PHP's curl can be implemented to support FTP, FTPS, HTTP htpps SCP SFTP TFTP TELNET DICT file and LDAP. Curl support SSL certificates, HTTP POST, HTTP put, FTP
1:get Access Browser thinks it's idempotent.
The same URL has only one result [the same is the exact match of the entire URL string]
So the second visit if the URL string does not change the browser is directly come up with the results of the
Many APIs provide a Java Post,get way to invoke the interface that returns the result, and the following records are common for sending requests and receiving return parameters:
Package com.taray.test;
Import Java.io.BufferedReader;
Import java.io.
A summary of good posts, not original:The Get Back button/refresh is harmless, post data is resubmitted (the browser should tell the user that the data will be resubmitted).
Get bookmarks can be collected, post bookmark is not collectible.
get can
1.1 Post garbled
Add post garbled filter in Web. xml
Add to Web. xml:
CharacterEncodingFilter
org.springframework.web.filter.characterencodingfilter
encoding
utf-8
characterencodingfilter
/*
1.2 Get garbled
There are two garbled methods for
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.