php - http send get request and catch the response -


i programming code send .... have no idea how describe this, cause not full time php programmer , technologies , frameworks developing fast.

so, have code... well, address:

http://www.something.sk/something/cid=username&vs=012345&rurl=xxx 

where xxx dress can catch response server, make no sense me if using, should not blank

file_get_contents(url_above) 

so, questions are:

1) how this? 2) '?' lost request url, if api wants http form style method arguments looks /index.php?id=blahblah&vs=012345 not working way. 3) when hard type url above browser url bar, gives me error:

kohana_request_exception [ 0 ]: unable find route match uri: 

which makes no sense. also, not owner of server, , response should like:

status=ok&code=687629 

4) so, once again, how code send , catch response? or how find on google, cause have no idea how name it. have seen posts , php doc, using 'file_get_contents' method safest

please help, thank much.

i have'nt understood question,but here's answer:
have stored values in database?
if so,use id of value in xxx part of address.
also, if user enters id does'nt exists,use try/catch(or else showing error.html page) show user appropriate error wont confused.
if linking product in <a> tag,it should this:

<a href:"http://www.something.sk/something/cid=username&vs=012345&rurl='id comes here'">dress</a> 

if did'nt you,please feel free tell me.


Comments