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 8109757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:31:19+00:00 2026-06-06T01:31:19+00:00

I am writing a program which needs to access data in a web server.

  • 0

I am writing a program which needs to access data in a web server. I have a decent understanding of network programming in the Linux environment, but I am a bit new to raw HTTP.

I have data in a MySQL database on a web server that is accessed using PHP code that reads and outputs the data, and the PHP code is called via a system of in-url variables through raw HTTP. Question number one: is this a secure way of doing this? Is there a better way? (I am OK with branching to different database types, etc. Security is my top priority).

My other question is how does one go about removing HTTP response data from the raw socket response so that I can read the actual data I wanted to the PHP function? (I also tend to recieve a random character or two before and after the web code, I am not sure what that is (not a null termination issue – its in the middle of valid data.)

Thanks,
Collin Biedenkapp

  • 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-06T01:31:20+00:00Added an answer on June 6, 2026 at 1:31 am

    HTTP security is typically handled with encryption. So as long as you are using HTTP over SSL (HTTPS), then you are secure. If not, it doesn’t matter how the parameters are delivered (in URL or in entity), the transmission is not secure.

    The extra characters you are seeing when decoding the HTTP response is most likely chunked encoding. Chunked encoding precedes chunks of data with a hex code that specifies how many bytes are in the chunk. This continues until the chunk hex value is 0. More about it here, but this is also described in the standard, which you are going to have to become familiar with if you are going to be implementing parts of HTTP yourself.

    Many HTTP libraries exist. I believe curl is one of the more popular ones.

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

Sidebar

Related Questions

I am writing a program which needs to be run in Android 2.0. I
I'm writing a C++ program which needs to be able to read a complex
I am writing a program which collects lots of individual pieces of data from
I'm currently writing a program in which I would like to access the variable
What I'm doing: I'm writing a custom program in PHP which pulls data via
I am writing a program which will preform texture synthesis. I have been away
For a uni assignment I'm writing a java program which needs to save and
I'm going to be writing a program which has some web services in it
I have a program test.c which needs to include a header file common.h. I
I'm writing this Java program in which I have a JFrame and a Thread.

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.