Question

Use a Unix/Linux environment develop and test a C/C++ program that accepts one argument which is...

Use a Unix/Linux environment develop and test a C/C++ program that accepts one argument which is supposed to be a URL, analyzes the input argument and prints its components on the terminal.

For example, if the input was the string

then the output should look like the followings:

Protocol:       https

Domain: adsadas.edu

Port:               80

File path:       /directory/faculty/people.html

Parameters: name=Robert

the program should print out an error message that would help the user to locate the errors, e.g.

Invalid URL with following erroneous components:

Protocol:       hpptz is not a valid protocol.

Port:               port number must be between 1 and 65535

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Removed this answer, as code-window is buggy in HomeworkLib, because of which proper formatted code cannot be submitted.

Add a comment
Know the answer?
Add Answer to:
Use a Unix/Linux environment develop and test a C/C++ program that accepts one argument which is...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT