Rex's Personal Site

This site is built on WordPress and contains personal notes, photos and videos

Skip to content
  • Home
  • About wikirex
  • Web Site Design
  • Plugin Test
    • 攝影
    • 錄影
  • 神は乗り越えられる試練しか与えない
  • Partners
    • 陳小欣作品集
Rex's Personal Site

Send Request by axios and server side (php) get empty request

Vue.js or React.js use axios to send request to server, but sometimes server side get nothing.

Reason:

axios send data in JSON format by default. So you need to change the request data type or use another way to get data.

Reference:

  • https://stackoverflow.com/questions/46274928/react-js-using-axios-to-post-data-to-php-but-php-echo-empty
This entry was posted in PHP on 05/21/2019 by admin.

Post navigation

← User group can not delete image file of image field Guzzle usages →

Post Calendar

May 2019
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Apr   Jun »

Post Category

  • 3D (3)
    • three.js (3)
  • ASP (23)
  • AWS (8)
  • bootstrap (14)
    • popover (2)
  • CSS (64)
    • iphone (1)
  • Excel (8)
  • Facebook (4)
  • Finance (1)
  • Flex (1)
  • Front-end (1)
    • Laravel Mix (1)
  • Fucking IE (2)
  • Git (10)
  • Google (18)
    • Google Ads (1)
    • Google Analytics (2)
    • Google Map (3)
    • Tag Manager (4)
  • Gulp (2)
  • Hosting (16)
    • Apache (9)
    • Laragon (2)
    • XAMPP (1)
  • HTML5 (20)
  • Java (1)
  • Javascript (86)
    • Chart (2)
    • GreenSock (2)
    • JSON (5)
  • jQuery (105)
    • Plugin (65)
      • jsTree (2)
    • TinyMce (2)
  • Linux (13)
    • Ubuntu (7)
  • Magento (4)
  • Mobile (3)
  • MySQL (46)
  • NAS (3)
  • Node.js (1)
  • Others (35)
    • Piwik (1)
    • VBScript (1)
  • PHP (326)
    • CodeIgniter (32)
    • Composer (2)
    • Custom Scripts (4)
    • Facebook (5)
    • Guzzle (1)
    • Laravel (124)
    • paypal (3)
    • Symfony (1)
    • Voyager (9)
    • yii (1)
  • Regular Expression (1)
  • SQL Server (11)
  • Sublime (3)
  • Uncategorized (10)
  • VSCode (3)
  • Web Tools (66)
    • ckEditor (6)
    • ckFinder (4)
    • datatable (17)
    • elfinder (4)
    • Filezilla (1)
    • jqGrid (1)
    • PHPExcel (10)
    • Phpspreadsheet (4)
    • plupload (2)
    • Postman (1)
    • Redis (2)
    • SendGrid (2)
    • TCPDF (1)
    • TinyMCE Rich Text Box (4)
    • VS Code (1)
  • Windows (21)
    • IIS (8)
  • WordPress (20)
    • Plugin (2)
    • woocommerce (10)
  • XML (1)
Proudly powered by WordPress