Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8365505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:40:32+00:00 2026-06-09T12:40:32+00:00

Whenever I call the webservice: http://www.grubolympx.com/app/rating.php , it sends Please send appropriate value message.

  • 0

Whenever I call the webservice: http://www.grubolympx.com/app/rating.php, it sends “Please send appropriate value” message.

Please give the idea to pass appropriate value to this webservice for retrieving data.

This is my code:

public String readFeed() {
    StringBuilder builder = new StringBuilder();
    HttpClient client = new DefaultHttpClient();
    //HttpGet httpGet = new HttpGet("http://twitter.com/statuses/user_timeline/vogella.json");
    //HttpGet httpGet = new HttpGet("http://ragecomics.cloudapp.net/RestService.svc/json/Hot/0");

    HttpGet httpGet = new HttpGet("http://www.grubolympx.com/app/rating.php?q=India");
    httpGet.setHeader("content-type", "application/php");
    try {
        HttpResponse response = client.execute(httpGet);
        StatusLine statusLine = response.getStatusLine();
        int statusCode = statusLine.getStatusCode();
        if (statusCode == 200) {

             HttpResponse response1 = client.execute(httpGet);
            HttpEntity entity = response.getEntity();
            InputStream content = entity.getContent();
            BufferedReader reader = new BufferedReader(new InputStreamReader(content));
            String line;
            while ((line = reader.readLine()) != null) {
                builder.append(line);
            }
        } else {
            Log.e(AdcActivity.class.toString(), "Failed to download file");
        }
    } catch (ClientProtocolException e) {
        e.printStackTrace();
    } catch (IOException e) {
        e.printStackTrace();
    }
    return builder.toString();
}

iPhone code:

  NSURL *url = [NSURL URLWithString:@"grubolympx.com/app/rating.php"]; 
  ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; 
  [request setRequestMethod:@"POST"]; 
  [request addRequestHeader:@"User-Agent" value:@"ASIHTTPRequest"]; 
  [request addRequestHeader:@"Content-Type" value:@"application/json"]; 
  [request appendPostData:[jsonString dataUsingEncoding:NSUTF8StringEncoding]]; 
  [request setDelegate:self]; 
  [request startAsynchronous]; } 
–

(void)requestFinished:(ASIHTTPRequest *)request { 
  NSString *responseString = [request responseString]; 
  NSDictionary *responseDict = [responseString JSONValue]; 
  NSLog(@"%@",responseString); 
  if ([responseString isEqualToString:@"SUCCESS"]) { 
    // Display succeed msg 
    [Appirater appLaunched]; 
  } else{ NSLog(@"%@",responseString); } 
– 

else if (responseDict != NULL){ 
  NSMutableDictionary *rateDictionary = [[[NSMutableDictionary alloc] init] autorelease]; 
  [rateDictionary setObject:[responseDict valueForKey:@"dishes"] forKey:@"Foodname"];
  [rateDictionary setObject:[responseDict valueForKey:@"ratings"] forKey:@"rating"];
  [rateDictionary setObject:[responseDict valueForKey:@"country"] forKey:@"country"];
  [self updateAverageRateWith:rateDictionary]; 
  // Update average rate in rateArray. 
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T12:40:34+00:00Added an answer on June 9, 2026 at 12:40 pm

    It responds with the same message when you paste that URL into a web browser.

    If you run their app while connected to your PC does log cat show anything useful?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the facebook graph PHP sdk - whenever I call the $facebook->api method
I'm using the facebook graph PHP sdk - whenever I call the $facebook->api method
right now whenever i call this function the value in B3 cell of excel
Whenever we call a function returning value why it is not required to catch
In Javascript whenever we call the getDate() method a value of 1-31 is returned
This is really weird. Whenever I call something like if(empty($this->input->post(foo)){//blabla} The whole PHP is
Whenever I call trigger(reloadGrid) on a JqGrid, it clears the existing table, displays a
Whenever I call my logger in a method, e.g. _logger.Debug(Connecting to database...); I get
I keep getting this error whenever I call gethostbyname() in my C code. ==7983==
I'm working on a Perl module and whenever I call the skip() method I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.