Page 1 of 1

Newbie : How to change GET request to something else ?

PostPosted: 10. July 2010 14:12
by walfyred
Hi everybody,

I am a newbie, and I have a problem like this :

PC(s) --------(LAN)-------XAMPP web server( 10.1.1.1)

I am using XAMPP portable, version 1.6.6a. When every PC submit a request like : http://10.1.1.1/pcid=xxxxx(with xxxxx is pc code), I want to change it to http://10.1.1.1/test.exe( i.e I want to return some specific requests with a same file ). I know it is a simple question related to GET process function, but I don't know where to find the file where the function is, neither how to change it :?

Could anybody bother to help me, guys :D ?

P.S. : I am soory for my English. I know it isn't good :roll:

Re: Newbie : How to change GET request to something else ?

PostPosted: 10. July 2010 14:52
by JonB
Do you mean in your server logs?

:?:

Re: Newbie : How to change GET request to something else ?

PostPosted: 10. July 2010 15:17
by walfyred
Hi JonB,
No, I don't want it in server logs, I want it happen real time :D

Re: Newbie : How to change GET request to something else ?

PostPosted: 10. July 2010 18:48
by JonB
GET is an HTTP Method.. you have to use the proper agruments. Thus, it is not likely simple.

You will have to better explain what it is you think you want to do.

:)
YSB

Re: Newbie : How to change GET request to something else ?

PostPosted: 11. July 2010 10:36
by walfyred
Hi JonB,
Yes, I can explain it more clearly :)
PC(s) --------(LAN/WAN)-------XAMPP web server( 10.1.1.1)
There is some sort of old stupid software that installed on several PCs at my office branches, it need to download a data file from our web server to process. But when using its web interface to get data, it will request something like : http://10.1.1.1/pcid=xxxxx( for example : PC A will request : http://10.1.1.1/pcid=11112, PC A will request : http://10.1.1.1/pcid=12222...) while in true, all it need is request : http://10.1.1.1/data.xls to get the data file.
Because the software is hardcode, so I can't change it, so I need to find a way to change its request when it get to web server, I want on web server, when it receive a request like : http://10.1.1.1/pcid=xxxxx( xxxxx maybe abcds, 12223,22333...) it will always return a file name data.xls.

I hope now I make it clear enough :)

Re: Newbie : How to change GET request to something else ?

PostPosted: 11. July 2010 13:42
by JonB
Well - it is as I thought.

Without rewriting the HTTP protocol or how the software works, its unlikely you can change things.

Do you know what those 'pcid' thingies are doing? (I'm pretty sure I do)

Let me ask a question, if it works, why do you care? (seriously) (it does work, right?)

You will soon find out why I asked about server logs.

:shock:

PS - you could always re-write that stupid old software too :mrgreen:

DFG