Http Request From Batch

Hi!

I would like to create an http access from a batch script. For that, I use netcat as follows:


type request.txt | nc.exe localhost 80 > result.txt

my request.txt:


GET http://localhost/index.php?r=table

HTTP/1.1

Host: localhost

User-Agent: ExecScript/1.0

Keep-Alive: 300

Proxy-Connection: keep-alive

Cache-Control: max-age=0

Here it works. Then I try to add an action:


GET http://localhost/index.php?r=table/action

HTTP/1.1

Host: localhost

User-Agent: ExecScript/1.0

Keep-Alive: 300

Proxy-Connection: keep-alive

Cache-Control: max-age=0

Here, it doesn’t works, my result.txt stay blank and php code in my action is not executed. What could explain this? If I try to join a non existing error, there, I get a 404 error, so I think that my action is reached.

Thanks.

Solved, it was a problems of rights on my action.