Bob The Builder 62 Posted September 13, 2011 Report Share Posted September 13, 2011 Is there anyway to get HTTP headers from within Ubot?I can't seem to find anything that would allow me to do that. I am trying to add proxy testing into a bot, but without being able to read headers I can't run it against my judge to test them. Quote Link to post Share on other sites
seonid 4 Posted December 5, 2011 Report Share Posted December 5, 2011 Is there anyway to get HTTP headers from within Ubot?I can't seem to find anything that would allow me to do that. I am trying to add proxy testing into a bot, but without being able to read headers I can't run it against my judge to test them. You cannot do it only within Ubot. I am getting http headers by calling curl in shell. It works nice. shell("{$special folder("Application")}\\curl.exe -ID {$special folder("Application")}\\{#currenthost}.txt {#currenturl}") 1 Quote Link to post Share on other sites
thejake 11 Posted June 12, 2012 Report Share Posted June 12, 2012 set(#responseheaders, $eval("var req = new XMLHttpRequest(); req.open('GET', document.location, false); req.send(); req.getAllResponseHeaders(); "), "Global") 1 Quote Link to post Share on other sites
JohnB 255 Posted June 12, 2012 Report Share Posted June 12, 2012 nice solution! http://ubotstudio.com/forum/public/style_emoticons/default/smile.gif Bob, if this works for you respond and I will sticky it. John Quote Link to post Share on other sites
Bob The Builder 62 Posted June 12, 2012 Author Report Share Posted June 12, 2012 Works good. Similar to what I came up with. I didn't want to have to shell out. Thanks TheJake. Quote Link to post Share on other sites
malefic 48 Posted June 13, 2012 Report Share Posted June 13, 2012 Thanks for this chaps - now noted down in the 'you will need this oneday' text file I have Quote Link to post Share on other sites
Aymen 385 Posted October 23, 2012 Report Share Posted October 23, 2012 awesome but can we do the same thing but with the POST method to post things rather than getting things Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.