in Search
     
Latest post 01-29-2007 4:27 PM by keithrull. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-29-2007 12:13 AM

    • lamia
    • Top 10 Contributor
    • Joined on 06-20-2006
    • Sampaloc, Manila
    • Posts 752
    • Points 13,185

    Error 400 on iFrame when using a different DNS?

    Hi guys! We're in a situation where we really don't understand the problem.

    Here's the scenario.

    We have two Java applications. Application1 contains two iFrames, the left side

    having all the links and the right side where pages you clicked on the links(the

    left iFrame) is loaded.

    One of the links in the iFrame constains an anchor, to another application. This

    seems to work fine.

    These two applications reside in the same IP address and can be accessed through

    the web browser via

    http://xxx.xxx.xxx.xxx/application1

    and

    http:xxx.xxx.xxx.xxx/application2

    they also have the following domain names, respectively.

    http://myhome.mydomain.ph

    http://rpc.mydomain.ph/application2

    this seems to work fine, until we tried to access http://rpc.mydomain.ph in

    another DNS.

    The other DNS name is yourdomain.ph. yourdomain.ph has the same IP address as

    mydomain.ph, and is actually just pointing to mydomain.ph. So basically,

    yourdomain.ph is also mydomain.ph.


    The real problem:

    When yourdomain.ph is accessed, you can still actually load

    rpc.mydomain.ph/application2. The problem is that any link I access in  rpc.mydomain.ph/application2(rpc.mydomain.ph/application2 is first loaded successfully in the iFrame) gives

    an http error 400 message. All links in application 2 are relative to the application

    which really makes us bang our heads. Do you guys have any ideas on why we're

    encountering this problem? Thanks!


     

    Convert limitations to great expectations... You are the creative force of your life...

    • Post Points: 20
  • 01-29-2007 4:15 PM In reply to

    • cruizer
    • Top 10 Contributor
    • Joined on 12-14-2005
    • Singapore
    • Posts 944
    • Points 22,590

    Re: Error 400 on iFrame when using a different DNS?

    are you using Apache (HTTPd) as your server? you might be missing some important <VirtualHost> directive settings. best way to find this bug is to look at the server logs and find out why they're generating those HTTP 400 errors. By the way, what's HTTP 400? Forbidden?
    http://devpinoy.org/blogs/cruizer
    Naglalayong buksan at palayain ang kamalayan ng Pinoy .NET developer
    • Post Points: 20
  • 01-29-2007 4:27 PM In reply to

    • keithrull
    • Top 10 Contributor
    • Joined on 08-08-2005
    • San Diego, CA
    • Posts 1,956
    • Points 39,255

    Re: Error 400 on iFrame when using a different DNS?

    Error 400 means that the request sent to the server was bad or malformed

    http://www.checkupdown.com/status/E400.html

    I suggest that you download Fiddler and check the request being posted to the server so that you can see the actions beeing done by your web app in the background

    http://fiddlertool.com/fiddler/

    devpinoy sig

    • Post Points: 5
Page 1 of 1 (3 items)