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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:33:13+00:00 2026-06-01T06:33:13+00:00

How do I send URL with hash to nodejs? When I try to send

  • 0

How do I send URL with hash to nodejs?

When I try to send a URL with hash in it, it doesn’t work, but with ? it works.

const url = require('url');
const qs = require('querystring');
const http = require('http');
    
http.createServer(server).listen(1337, 'hostname');

function server(req, res) {
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.write(req.url);
    
    var currentURL = url.parse(req.url, true);
    console.log(currentURL);
    res.end('\nHello World\n');
}
    
console.log('Server running at http://127.0.0.1:1337/');

Use case: Facebook access_token URL format is something similar to above

  • 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-01T06:33:15+00:00Added an answer on June 1, 2026 at 6:33 am

    The part of the URL after the '#' mark, called the fragment, is not sent to the server. If you store data in the fragment, then it is up to you to process that data and do an ajax request with the data in a GET argument.

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

Sidebar

Related Questions

To send username and password with a URL, we use this scheme: http://username:password@www.my_site.com But
If I was to send a URL to a DNS server, lets say: dev.example.com/?username=daniel,
I'm trying to send a URL with some parameters using HttpPost but it has
I've written this code to try and send a url as a post value
I'm trying to take a URL's hash value, send it through a function, turn
Hi i want to send url with hash of image source.How can do it
I'm trying to come up with the correct url-encoded info hash to send to
I have a url string like this: http://www.google.com/cse?cx=017840637368510444960:ny1lmky7r-0&client=google-csbe&output=xml_no_dtd&q=simon+g I need to send this url
in javascript how to send request some url at a partcular time(e.g daily 5
I want to send data through URL.I've tried the below code: Intent browserIntent =

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.