Discussion Locked

local http variables unread by browser

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi, I'm using Win2k pro as development platform for web pages. I started to notice that any page that was supposed to receive the (get & post) parameters (e.g. from a form) does not read them although they may be shown in the address bar.

The net effect is that i cannot test dynamic web pages locally. Testing on the net works fine however.

I have tried various web servers including Apache, IIS and BadBlue and the same thing happens.

What could be the problem/solution?

6 replies

by madestroitsolutions

If you want to test web pages locally, you have to call the pages trhough your computers address. Im guessing you are probably going to the file itself and just double-clicking it to test it. If you do such a thing, your page will not execute properly, even if you have a web server running in your machine. What you need to do is open a browser, and call:

http://127.0.0.1/
or
http://YOURCOMPUTERNAME/
or
open a command prompt, get your IP address with something like IPCONFIG, and then type:
http://YOURIPADDRESS/

This will make the web server "serve" the page to you.

If on the other hand you are using some development tool, then forget it, you are better off just working it out on the web. Those web design programs often requireu to install a bunch of garbage in order to be able to debug, unless you have something nice like Visual Interdev (which is what I use).

Godd Luck!

by vgr2

thanxs but i already have tried using both localhost and 127.0.0.1

The problem occurs when a page is supposed to receive either post or get (URL) variables. u see the variable in the URL but the page does not pick it up.

Any idea what could becausing this
thanx in advance

by port8080

I think the above answer should do it for you. Just an addition. You can even test a dynamic page locally by pointing your browser to http://localhost/path_to_dynamic_file

This discussion is closed to new replies.