Trying to do an HTTP POST command from embedded board to Apache server -


i'm trying c code going on embedded board running freertos , using tcp/ip stack post simple file apache server running on desktop.

i can pull file from apache server to board fine, know apache server running. enter image description here

i have attached wireshark screenshot of http post packet goes out embedded board. can see hex values of exact message @ bottom.

i send tcp packet out twenty bytes of data. have tried , attaching twenty bytes of data same packet header in. in both cases couple of packets desktop outlining error. tells me there 404 error found on 1 site means:

http/1.1 404 not found

the post path of command incorrect.

the index.html file on apache server in /var/www/html/ directory. created incoming subdirectory , gave full permissions everyone.

drwxrwxrwx 2 root root 4096 nov 19 10:07 incoming/ -rw-r--r-- 1 root root 174 nov 11 22:20 index.html

so, believe should able post incoming address. request /index.html in command, believe request:

post /incoming/records.txt

should correct path.

is able advise on why wrong please?

i guess be:

  1. an incorrect post command
  2. an incorrect apache setup

i suspect reason apache server resending last packet because have not sent ack when sent me 404 error. try sort out in parallel.

wfiw using berkeley sockets in stack send , receive information.

many thanks!


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -