Parsing a mostly partial url assupplied in a HTTP GET request-header

From: R.Wieser (rwieser-killthis-_at_xs4all.nl)
Date: 02/26/04


Date: Thu, 26 Feb 2004 20:30:11 +0100

Hello all,

  I'm trying to parse/crack/divide into parts the URL that is part of an
HTTP GET request ("GET /mypath/myfile.ext?arguments=somedata HTTP/1.0").
I've tried to apply InternetCrackUrl, but it refused because it did not know
what scheme to use. GetUrlPart fails, probably because of the same reason.

I've tried to find if I could instruct InternetCrackUrl to use a default
scheme, but was unsucessfull. Some on GetUrlPart (somehow I think that this
call uses the first one).

Has anyone an idea of what I should use/do here (outside of doing the whole
parsing myself ofcourse :-) . I can alway's call the function, and prepend
a default scheme & server ("http://dummy") in front of what I'm having if I
get an error, but for some reason that does not strike me as a "clean"
solution ... :-)

Help/suggestions would be appriciated.

Regards,
  Rudy Wieser



Relevant Pages

  • Re: Waverley route: not looking good.
    ... Waverley line has voted against the scheme. ... Borders Rail - gave the case in favour of reopening the line". ... What a damn stupid reason! ... And do remember that Borders Council is expected to pay a lot of money ...
    (uk.railway)
  • Re: Pause Frame transmission
    ... Was there ever a specific reason for including a configurable pause time ... we discussed a pure "on-off" scheme at great ...
    (comp.dcom.lans.ethernet)
  • Re: How do you do this?
    ... However, since the feature can be useful occasionally, Scheme ... never resulted in any practical language with native speakers. ... reason about are essential for getting anything done. ... There is not much difference in effort writing Haskell or writing ...
    (comp.lang.scheme)
  • Re: spec 3.1.2.1.2 and the lambda exception
    ... > issue, which divides scheme and lisp, I know. ... > 1) there is some good reason to allow lambda expressions in the car. ...
    (comp.lang.lisp)
  • Re: RFD: Kernel release numbering
    ... and the only reason it works is that 2.4.x is a totally ... > things out, but it doesn't matter how many -rc kernels I'd do, it just ... It seems to me that the problem is not the numbering scheme. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)