comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: URL Parsing for wget in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: URL Parsing for wget in IDL [message #54842 is a reply to message #54840] Tue, 17 July 2007 10:34 Go to previous messageGo to previous message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
"Ben Panter" <me@privacy.net> wrote in message
news:f7ions$b7h$1@scotsman.ed.ac.uk...
> Hi Folks,
>
> Does anyone know of a handy way of parsing URLs in IDL? Or even a nice perl
> script to do it? The situation is that we have a server that can accept SQL
> queries via URL encoding of a get command, which works in the main part but
> falls over with '&' and '+' type syntax.
>
> I'll write a regexp version myself if necessary, but it's not trivial - you
> have to ensure the ordering is correct as there are several encodings which
> use characters which would other wise be replaced.

Hi Ben,

I just stumbled on this yesterday: IDL 6.4 comes with a new function called
Parse_URL. Quoting Online Help:

PARSE_URL returns an anonymous structure containing the disassembled segments of
the URL. The fields in the structure are:

SCHEME
USERNAME
PASSWORD
HOST
PORT
PATH
QUERY

Does that help?

Cheers,
-Dick

--
Dick Jackson Software Consulting http://www.d-jackson.com
Victoria, BC, Canada +1-250-220-6117 dick@d-jackson.com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: widget_table
Next Topic: Re: why is amoeba not working ??

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 10:42:14 PDT 2025

Total time taken to generate the page: 0.96619 seconds