x
all questions login
General DNS & Domains Dyn Email Update Clients Dyn Developer

Hi,

I want to use the WebHop service to forward an address to another with a specific port.

Example: http://test.domain.com to http://anothertest.anotherdomain.com:2023

It seems that HTTP POST requests are not forwarded. Can someone can confirm that? Is there a workaround?

Thank you,

more ▼

asked Mar 16 at 01:32 PM

simactive\'s gravatar image

simactive
3 1 2

10|600 characters needed characters left

2 answers:

WebHop without cloaking merely redirects the browser to your actual host (optionally on an explicitly defined port number). WebHop with cloaking merely creates a frameset, showing your actual site (from your actual host:port) within a frame, so as to "hide" the real URL from the browser's address bar.

You cannot send POST requests directly to the WebHop hostname. Could you elaborate on your scenario?


Here is the code I'm using with a post request: <form method="post" action="http://forward.mydomain.com/validate.php">text:<input type="text" size=40 name="name"> <input type=submit value="Submit Post"> </form> Using that code, my PHP script doest not receive the post value if I send it through the WebHop address. Son you are telling me that it is not possible? Thanks a lot for your help.

No, that won't work. DynDNS' WebHop servers only presents a different URL to the user's web browser (causing a redirect), they don't process data from the user.

It is not a good practice to hardcode the URL into your PHP script. Rather use $_SERVER['PHP_SELF'], such as:

<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
more ▼

answered Mar 16 at 02:45 PM

VikingTiger\'s gravatar image

VikingTiger ♦
11.6k 2 10 124

Here is the code I'm using with a post request:

text:

Using that code, my PHP script doest not receive the post value if I send it through the WebHop address.

Son you are telling me that it is not possible?

Thanks a lot for your help.

Mar 16 at 03:59 PM simactive
10|600 characters needed characters left

I'm not sure what you mean by http post requests. Are you referring to cloaking? If you are you would have to design your site with the frames in mind. Here is a link with more info that can help you. http://www.dyndns.com/support/kb/webhops_redirections.html

more ▼

answered Mar 16 at 02:40 PM

jku\'s gravatar image

jku
458 10

10|600 characters needed characters left
Your answer
osqa.question.ask.tags.preview.show

© 1998-2011  Dynamic Network Services Inc.  -  Legal Notices  -  Privacy Policy  -  Contacts     

Powered by Qato