Busybox httpd: error 501 on POST request and cgi not executing on yocto linux-3.10.53

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Busybox httpd: error 501 on POST request and cgi not executing on yocto linux-3.10.53

ソリューションへジャンプ
1,690件の閲覧回数
justthat1
Contributor II

Hello everyone,

I'm trying to set-up a lightweight web-server on a custom board based on an IMX6Q processor with linux 3.10.53 as OS. I've built the OS using the Yocto software.

I can see the html pages hosted on my board through the browser, though whenever I send an HTTP POST request I get as response the error "501 Not Implemented The requested method is not recognized".

Also when I send an HTTP GET request, the browser downloads the executable instead of running it. All the executables (that, as a test, only print plain strings in html fashion; source files are written in C code) are placed under the "cgi-bin" directory of the web-server home directory. I made sure to have changed their owner and permissions and, in fact, I can run them just fine from the board terminal.

Thanks for your help

edit - Found the culprit: the httpd service build by busybox in the yocto software doesn't enable the cgi by default. I had to manually enable it, by using "bitbake busybox -c menuconfig" and checking the flag for cgi support in the "networking utilities" menu

ラベル(4)
0 件の賞賛
1 解決策
1,113件の閲覧回数
justthat1
Contributor II

Found the culprit: the httpd service build by busybox in the yocto software doesn't enable the cgi by default. I had to manually enable it, by using "bitbake busybox -c menuconfig" and checking the flag for cgi support in the "networking utilities" menu

元の投稿で解決策を見る

0 件の賞賛
1 返信
1,114件の閲覧回数
justthat1
Contributor II

Found the culprit: the httpd service build by busybox in the yocto software doesn't enable the cgi by default. I had to manually enable it, by using "bitbake busybox -c menuconfig" and checking the flag for cgi support in the "networking utilities" menu

0 件の賞賛