Re: URL problem in firmware 1.12

Shawn Silverman <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
May I suggest that RFC 2396, "Uniform Resource Identifiers (URI):  
Generic Syntax", be used as a starting point for the URL syntax.  I  
consider it the "latest technology" on this subject.

I've got lots of URL parsing code with lots of tests if the URL parsing  
people on the TINI team wish to contact me.

Regards,
	-Shawn

On 9-Apr-04, at 6:02 AM, Jac Kersing wrote:

> Hi,
>
> After questions on the JXME list I decided to run some simple tests to
> find why JXME doesn't run on TINI. It seems to boil down to a rather  
> fatal
> flaw (for JXME at least) in the URL parsing for HTTP connections.
>
> When TINI is parsing URLs the parameters for GET are being included in  
> the
> parsing. The parse results are unusable when the parameters for the get
> include ':' as TINI expects to find a port number after it.
>
> See the output and test code below.
>
> DalSemi, could I get a bugfix release for this issue???
>
> Regards,
>
> Jac
>
> Output from TINI:
> janeway /> java T.tini
> protocol: http
> host    :
> 172.16.1.2:9700/unknown-unknown?2000,-1,http://172.16.1.2:9700/ 
> EndpointService
> port    : -1
> file    : /uuid-DEADBEEFDEAFBABAFEEDBABE0000000F05/pid
> ref     : null
>
> Output from PC (java 1.3.1):
> protocol: http
> host    : 172.16.1.2
> port    : 9700
> file    :
> /unknown-unknown?2000,-1,http://172.16.1.2:9700/EndpointService:jxta- 
> NetGroup/uuid-DEADBEEFDEAFBABAFEEDBABE0000000F05/pid
> ref     : null
>
> The code:
> import java.net.URL;
> import java.net.MalformedURLException;
>
> public class T {
>
>         public static void test(String url) {
>                 try {
>                         URL u = new URL(url);
>
>                         System.out.println("protocol:  
> "+u.getProtocol());
>                         System.out.println("host    : "+u.getHost());
>                         System.out.println("port    : "+u.getPort());
>                         System.out.println("file    : "+u.getFile());
>                         System.out.println("ref     : "+u.getRef());
>                 } catch (MalformedURLException e) {
>                         System.out.println("Exception:  
> "+e.getMessage());
>                         e.printStackTrace();
>                 }
>         }
>
>         public static void main(String[] a) {
>
> test("http://172.16.1.2:9700/unknown-unknown?2000,-1,http:// 
> 172.16.1.2:9700/EndpointService:jxta-NetGroup/uuid- 
> DEADBEEFDEAFBABAFEEDBABE0000000F05/pid");
>         }
> }
>
>
> -- 
>  Jac Kersing            Technical Consultant   The-Box Development
>  j.kersing-9+7/[email protected]                         http://www.the-box.com

_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.