Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Http Request Test
- @inputs Keyboard:string Search EGP:wirelink
- @outputs
- @persist
- @trigger
- if(first()) {
- runOnHTTP(1)
- }
- if (httpCanRequest() & Search == 1) {
- httpRequest("https://en.wikipedia.org/wiki/" + Keyboard)
- }
- else {
- print("Error. You cannot search at this time or you did not press the button")
- }
- if (httpClk()) {
- RequestURL = httpRequestUrl()
- Data = httpData()
- if (Data == " ") {
- print("Request timed out. Please try again.")
- }
- else {
- print(RequestURL + ":" + Data)
- EGP:egpBox(1,vec2(256,256),vec2(512,512))
- EGP:egpMaterial(1, Data)
- }
- }
Add Comment
Please, Sign In to add comment