Re: External Scripts & Images

"Wolfgang Fahl" <[email protected]> Fri, 18 Sep 2009 06:21:25 +0200
Newsgroups gmane.comp.web.httpunit.devel
Organization BITPlan GmbH
Message-ID <[email protected]>
Dear Keith,

Thanks for your feedback.
For me this looks like we need a patch for this. Please 
double check by looking a the JUnit tests. I'm going to 
post the FAQ for this mailing list after this so that 
you hava a guideline what to do.

Yours
  Wolfgang
> I'm new to HttpUnit, and am running into an issue with using it on a page
> that pulls in external resources (JS and Images). Here is a snippet from the
> head of the page: 
> 
> 
> <script 
> src="http://ajax.googleapis.com/ajax/libs/dojo/1.3/dojo/dojo.xd.js"></script
> >
> <script src="/static/js/client-runtime.js"></script>
> 
> When HttpUnit goes to parse the first script tag, it fails because it seems
> to assume that all URLs are relative to a base URL. ParsedHTML.java
> constructs the get request for the script like this:
> 
> WebRequest req = new GetMethodWebRequest( getBaseURL(), srcAttribute );
> 
> Now this seems like a fairly common issue, so I'm wondering how people
> usually handle it? Are there some special options I need to enable in order
> to allow cross-domain resources?
> 
> Thanks in advance for your help.


BITPlan - smart solutions
Pater-Delp-Str. 1, D-47877 Willich Schiefbahn
Tel. +49 2154 811-480, Fax +49 2154 811-481
Web: http://www.bitplan.de
bitplan GmbH, Willich - HRB 6820 Krefeld, VAT-ID: 10258040548, 
Geschäftsführer: Wolfgang Fahl

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop