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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:04:30+00:00 2026-06-10T18:04:30+00:00

I just want to use PHP sockets ( NOT cURL) to connect to TOR

  • 0

I just want to use PHP sockets ( NOT cURL) to connect to TOR and send HTTP content to web via TOR using SOCKS5 protocol, or get some php classes that do so.

**New Edition

When i trigger the following :

fputs($Socket, “AUTHENTICATE $auth_code\r\n”);

where $auth_code is NULL value i got this ” 250 OK “

but when i send this :

fputs($Socket, “GET /index.php HTTP/1.1\r\n”);

i got the following error ” Unrecognized command “GET” 510 “

so my question is , How can i send http raw data to TOR to forward it?**

  • 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-10T18:04:31+00:00Added an answer on June 10, 2026 at 6:04 pm

    As far as I know, there isn’t a PHP library that can use SOCKS to forward data. You could roll your own, but you’d have to learn the SOCKS protocol, open a connection to the server with PHP, and then send data to it with instructions. SOCKS is not an HTTP-only protocol, it can forward any TCP connection and return the response.

    This is a non-trivial task, unless you are doing something dead simple. If you don’t care about the response, or your procedure is a clearly defined and simple request-response process, you can code this in no time. Just keep in mind that you’re operating at the 4th layer of the OSI model, there isn’t much architecture underneath you to make your life easier.

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

Sidebar

Related Questions

I just want to ask if is it okay that I use native PHP
Let's say I just want to use PHP include to grab HTML from another
I'm developing a Web application with PHP 5.3.3. I want it to send confirmation
I just want to build my first dynamic Website. I want to use PHP,
I'm now building a recommender system(a web site). I want to use the PHP
I want to use PHP to load a XML from a URL like HTTP://127.0.0.1/19/1,
I want to use PHP (possibly with Curl/XPath?) to extract data from Wikipedia pages.
I try to call an API. I just want use active resource so I
I don't want to use any Java code, I just want to use <jsp:include>
I have a placholder that I dont just want to use Visible=false on, becouse

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.