Look at the built-in url module.  It does exactly what you want.

On Tue, Jan 7, 2014 at 3:16 PM, JPJen <[email protected]> wrote:

> Thanks for your response.
>
>
>
> I am trying to code in the Node.js from scratch.  In fact, what I would
> liked to learn is how to "walk down" the path of a URL to get the
> information that is embedded in the URL.  For example,
> http://localhost:8080/core/health/clinicalAssessments/12345_678_9999.xml
>
>
>
> In the above URL, the value that is of interest  to have is
> "12345_678_9999.xml".
>
>
>
> Moreover, I would also like to know how to parse a URL to retrieve
> key/value pairs that are separated by "&".  For example,
> http://localhost:8080/core/health/clinicalAssessments/exams?startDate=2011-06-01&endDate=2012-12-01
>
>
>
> I am used to use Java to do the work.  Now, I have to do the work using
> the Node.js.
>
>
> On Tuesday, January 7, 2014 3:43:54 PM UTC-5, JPJen wrote:
>
>> I have never programmed using the Node.js.
>>
>> I am going to enter a URL; for example, http(s)://localhost:8080/core/ping
>> in the browser window and would like to have a Status 200 with a message
>> saying that "the operation is successful" in return.  How do I proceed in
>> doing it?
>>
>> Thank you very much.
>>
>>
>  --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to