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

  • SEARCH
  • Home
  • 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 7170435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:12:46+00:00 2026-05-28T15:12:46+00:00

I am trying to see what is wrong with a php script a wrote.

  • 0

I am trying to see what is wrong with a php script a wrote. The script is getting information from an android application and then using that data to search a table and send information back. The client side is written like this:

    nameValuePairs.add(new BasicNameValuePair("num1", num1));
    nameValuePairs.add(new BasicNameValuePair("num2", num2));
    nameValuePairs.add(new BasicNameValuePair("num3", num3));
    nameValuePairs.add(new BasicNameValuePair("num4", num4));


    InputStream is = null;

        HttpClient httpclient = new DefaultHttpClient();
        HttpPost httppost = new HttpPost("http://10.0.0.4/xampp/phpfile.php");
        httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
        HttpResponse response = httpclient.execute(httppost);
        HttpEntity entity = response.getEntity();
        is = entity.getContent();

How do I format the url in a browser if I want to execute the same script passing num1, num2, num3 and num4 in the same way?

  • 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-05-28T15:12:47+00:00Added an answer on May 28, 2026 at 3:12 pm

    Since you are using POST methos, as I can see, you can’t call it from a browser url.
    You can write a simple html file, with a form in it, wich uses post method, and then submit that.
    Or modify the server side php file, and instead of using $_POST[] variables use $_REQUEST[] variables, wich accept both GET and POST method calls.
    In this case:
    http://10.0.0.4/xampp/phpfile.php?num1=num1&num2=num2…
    should work fine.

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

Sidebar

Related Questions

I'm trying to feed data from SQL database to FLEX, using php script in
I'm trying to reproduce a POST request that was captured from WireShark using PHP.
I have a server-side php-script that fetches results from a MySQL table. I am
I'm trying to create a very simple PHP CLI application that can be run
I am trying to get some information from our database and then use it
I'm trying to create a PHP script that will return some details of each
im having some problems trying to read a SQlite data base from flash using
I'm trying to call to external PHP script using Ajax like this: $(function() {
I'm trying to see if anyone knows how to cluster some Lat/Long results, using
I am trying to see from an SQL console what is inside an Oracle

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.