Newbie : How to change GET request to something else ?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Newbie : How to change GET request to something else ?

Postby walfyred » 10. July 2010 14:12

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:
walfyred
 
Posts: 3
Joined: 10. July 2010 13:53

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

Postby JonB » 10. July 2010 14:52

Do you mean in your server logs?

:?:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

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

Postby walfyred » 10. July 2010 15:17

Hi JonB,
No, I don't want it in server logs, I want it happen real time :D
walfyred
 
Posts: 3
Joined: 10. July 2010 13:53

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

Postby JonB » 10. July 2010 18:48

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
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

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

Postby walfyred » 11. July 2010 10:36

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 :)
walfyred
 
Posts: 3
Joined: 10. July 2010 13:53

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

Postby JonB » 11. July 2010 13:42

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
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 52 guests