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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:07:31+00:00 2026-06-15T23:07:31+00:00

My PHP script uses http_post_fields() to make a post request to another server. Here

  • 0

My PHP script uses http_post_fields() to make a post request to another server.
Here is an example of the code:

$g = http_post_fields("http://mysite.com", $some_array);

Though the script occasionally works, I often get this error:

 http_post_fields() [function.http-post-fields]: couldn't resolve host name; name lookup timed out 

I have now tried a variety of http addresses in the function, they all result in this error.
Does anyone know what the source of my trouble is?

  • 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-15T23:07:32+00:00Added an answer on June 15, 2026 at 11:07 pm

    Thanks for all the input Kasun. In the end, I got tired of this PECL library (where http_post_fields is defined) and I used cURL instead. The goal I’m reaching for here, is to request a security ticket from 1 server to another. Of course, the whole module works smoothly, now that I’m using cURL. Thanks again.

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

Sidebar

Related Questions

I have developed a PHP script that uses $_REQUEST[] superglobal. A typical client request
I have followed all the instructions here: http://www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/ to install & config apache get
I have a PHP script that uses CURL to fetch a remote page and
I have a php script that uses some css/javascript tabs, they work on my
I am trying to write a PHP script that uses the pdftk app to
Say I have a SSI script that uses exec, or a PHP script that
I have a PHP script that does the following: Uses file_get_contents() to get content
I want to send a HTTP Post Request in Delphi 2010 using WinInet, but
I've made a pure PHP script that uses GD library to put text on
see: http://www.eat-drink-etc.com/ I have this code in the header of all the sites' pages:

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.