Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Extracting query parameters using SimpleHTTPServer?

$
0
0

Re: SimpleHTTPServer by Ramin Soleymani

I want to extract the query parameters inside the DynamicResponseHandler, so I can return the appropriate data using the createContext method. The callback example shows how this is achieved in a callback function, with the parameters passed in a HashMap. But there is nothing in the documentation which shows how to get the parameters elsewhere. For example, given the uri http://localhost:8000/food?type=chocolate, I want to reply with the relevant data for 'chocolate' when returning a context for 'food'. Any help much appreciated.


Viewing all articles
Browse latest Browse all 2896

Trending Articles