Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic GET arguments support (not perfect, parsing could be better) and example sketch #23

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

openshwprojects
Copy link

Parsing could be improved because it may return "atest123" value when you search for "test123" but still it's better than nothing. I may or may not improve it later.

@@ -35,6 +35,30 @@ bool ArduinoHttpServer::HttpResource::isValid()
return m_resource.length() > 0;
}

// not a perfect solution, may return incorrect argument if one is a substring (at the start) of another
Copy link
Owner

@QuickSander QuickSander Aug 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add D0xygen style commenting?

Thanks for the write up!

@openshwprojects
Copy link
Author

Sure, I can fix the comment when I find some free time.

I will also have to add decoding of HTML escaped characters, for example space, they are not currently handled correctly.

@openshwprojects
Copy link
Author

I've added some changes, also a basic GET escaped characters support:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants