About Store Forum Documentation Contact



Post Reply 
Get response after request
Author Message
Emtec Offline
Member

Post: #1
Get response after request
I would like to write simple code. Send request to server and get response from server. Example request to http://www.gooogle.com and I get response:

<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.pl/?gfe_rd=cr&amp;ei=e_KeU5GsJsWG8Qeoj4G4Dg">here</A>.
</BODY></HTML>

Could you tell me if in EE is there any method to support it? I 've tried to use Download, but this is for different purposes. Thanks.
06-16-2014 02:37 PM
Find all posts by this user Quote this message in a reply
Dwight Offline
Member

Post: #2
RE: Get response after request
From a webserver, you can use GET veriables in the php and echo something out.

e.g esenthel.com/engine/?act=version returns "32" or something; you would just return it as a string.
06-16-2014 09:12 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: Get response after request
Download works exactly like that, you can specify both GET and POST requests, and even send files.
06-17-2014 12:01 AM
Find all posts by this user Quote this message in a reply
Post Reply