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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:13:59+00:00 2026-06-15T16:13:59+00:00

I am rewriting example code for access to the API of a web store

  • 0

I am rewriting example code for access to the API of a web store from Java into classic ASP. The Java code works, it sends requests and the right results are returned. The ASP code does exactly the same but all it does is return an error that there is something wrong with the authorization. I have checked the hmac signature string (sha256, base64) but this gives the same results as the Java code.

So then I decided to check how the HTTP requests actually look, and compare them with each other. Fiddler seemed to be a good choice, but for some reason both HTTP request dont show up.

A lot has already been written on this subject and i tried several things, but so far no luck. They all describe routing the request through the Fiddler proxy, which is localhost:8888.

I use this object in the ASP code:

Set httpRequest = Server.CreateObject("MSXML2.ServerXMLHTTP.6.0")

For IIS 7 (on Windows 7) the proxy can be set in DOS like this:

netsh winhttp set proxy localhost:8888

And in the code like this (this may not work in other version of “MSXML2.ServerXMLHTTP” than v6):

httpRequest.setProxy 2, "http=localhost:8888", ""

The Java code uses Apache HttpClient, and according to the manual the proxy can be set like this:

DefaultHttpClient httpclient = new DefaultHttpClient();
HttpHost proxy = new HttpHost("localhost", 8888);
httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);

I added this code at the beginning of the main() method. The code is run inside Eclipse (Juno).

I also opened the proxy address (http://localhost:8888/) in a browser, and it shows me the ‘Fiddler Echo Service’ page. Fiddler is set to show ‘All Processes’.

Still, none of two HTTP Request show up. The only thing that does show up is the ASP page I run (http://localhost:8082/test.asp) that does the HTTP request. When I use my browser other things show up on Fiddler, so I know it is working.

Anybody got any ideas?

  • 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-15T16:14:01+00:00Added an answer on June 15, 2026 at 4:14 pm

    I originally thought that because nothing showed up on Fiddler with both programs, something was wrong with Fiddler.

    But things were wrong with both programs. For the ASP code, setProxy has to called like this:

    xmlhttp.setProxy 2, "http://127.0.0.1:8888", ""
    

    So “::/” instead of “=”

    Making Apache HttpClient requests in the Java code show up in Fiddler was very complicated because request were send using https protocol. Although I tried several proposed solutions, I could not get it to work.

    In the end I found out that adding

    -Djavax.net.debug=all
    

    as an argument for the VM showed me the what I needed, the headers that were being send.

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

Sidebar

Related Questions

I'm rewriting a PHP web site in ASP.NET MVC. I'd like to maintain the
Apart from rewriting a lot of XSLT code (which I'm not going to do),
I want to use in-build URL rewriting provided by ASP.NET 4.0. I have tried
This is about a legacy Access 2003 database that I've inherited. There's some code
So this post talked about how to actually implement url rewriting in an ASP.NET
I asked this question about rewriting old ugly links into seo friendly ones. I
I'm organizing our product's source code into a bunch of different Git repositories. (And
I am in the process of rewriting jQuery code to Backbone, but am stuck
In my code I've been rewriting static_cast<int *> about a million times, is there
I'm rewriting a large part of my texturing code. I would like to be

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.