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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:06:02+00:00 2026-06-11T10:06:02+00:00

The topic is a bit strange, let me express myself. I used this method

  • 0

The topic is a bit strange, let me express myself.
I used this method to generate post requests:

http://www.jonasjohn.de/snippets/php/post-request.htm

thats ok, but after a size, I realized the datas gets changes a little, there are unwanted white spaces. Only in case of a bigger size, + a “chunked” flag appeared.
I change the Http/1.1 protocol to Http/1.0 and now the transfers look good!
But is there any backward, pitfalls?

  • 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-11T10:06:03+00:00Added an answer on June 11, 2026 at 10:06 am

    Well there are a number of important differences between http 1.0 and 1.1 of course, look at this article for an overview.

    One that I can directly spot as affecting your code is

        // send the request headers:
        fputs($fp, "POST $path HTTP/1.1\r\n");
        fputs($fp, "Host: $host\r\n");
    

    The Host header field doesn’t exist in http 1.0, and that could affect your ability to post to servers that host multiple domains and/or subdomains via name based virtual hosting – the server won’t know what domain you’re calling.

    As a general note, writing a post request this way is a nice exercise and it’s always good to know what goes on under the hood, but for production purposes I’d use a full-blown, well tested mechanism like cURL

    And for reference:

    • rfc 1945 defines http 1.0
    • rfc 2616 defines http 1.1
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this topic is bit old, but i did surf the web and
I have searched this topic on google a bit and seen some best practices.
I only read a little bit about this topic, but it seems that the
This question comes a bit as continuation of the following topic (you don't need
My question is about this topic I've been reading about a bit. Basically my
This question if a bit off topic, I just wanted feedback from most ActionScript/Flex
I believe that this topic is very important to discuss a little bit since
I've posted a similar topic/question, but this time it's a bit different. I'm just
This is a bit different topic and i donot want to start long thread
I've researched a bit into this topic and have discovered that the last time

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.