Axios Form URL Encoded Post
Submit data as application/x-www-form-urlencoded using Axios transformRequest.
axios表单形式提交数据 axios post data by form type
axios post data by form type,axios application/x-www-form-urlencoded request({ // url: '', transformRequest: [function(data) { let ret = '' for (let it in data) { ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&' } return ret }], headers: { 'Content-Type': 'application/x-www-form-u...
Git Reset as Fresh Repository
Orphan branch technique to rewrite repository history from scratch.
git重置成新仓库 git reset to new repository
git重置成新仓库 git reset to new repository git checkout –orphan latest_branch git add -A git commit -am “commit message” git branch -D master git branch -m master git push -f origin master one line: git checkout –orphan latest_branch && git add -A && git commit -am “commit message” && git branch -D master && git branch -m master && git push -f origin master
wechat ban domain check
wechat ban domain check! $domain = 'https://baidu.com';$domain = urlencode($domain);$wxCheckUrl = 'https://weixin110.qq.com/cgi-bin/mmspamsupport-bin/newredirectconfirmcgi?main_type=2&evil_type=20&source=2&url=';$wxCheckUrl .= $domain;file_get_contents($wxCheckUrl);file_put_contents(uniqid().'.txt',json_encode($res));
wechat ban domain check
wechat ban domain check! $domain = 'https://baidu.com';$domain = urlencode($domain);$wxCheckUrl = 'https://weixin110.qq.com/cgi-bin/mmspamsupport-bin/newredirectconfirmcgi?main_type=2&evil_type=20&source=2&url=';$wxCheckUrl .= $domain;file_get_contents($wxCheckUrl);file_put_contents(uniqid().'.txt',json_encode($res));
Axios CORS Preflight Extra OPTIONS
Why a custom header like X-Token triggers a CORS preflight OPTIONS request.