Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 9th, 2004, 05:13 PM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default httpWebRequest created differently

I have a .dll that I've been able to successfully run in both a test and production environment that does a WebRequest.Create() and a request.GetResponse().

Everything works fine when I put a Windows frontend in front of my .dll. However, when I put an Web page in front of my .dll, the server I am dealing with returns an HTTP 403 Forbidden error.

When I do a hash of the HttpWebRequest object created with the Windows frontend, I get the exact same hash every time. When I do a hash of the HttpWebRequest object created with the Web page front end, I get a different hash eash time. Obviously there's a difference in how the HttpWebRequest object is being created depending upon the front end being used and this difference is the source of my problems.

I initally thought of instantiating the request object using the Windows front end, then serialize the object and save it to a database. Subsequent calls would de-serialize the request object and use it. Trouble is, the request uses a variable query string, which as far as I can tell must be in place at the time Create() is called. There's no way to set this property after the object has been instantiated.

Any help anyone can provide would be greatly appreciated.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Opinion - How would you of done this differently? dparsons Intro Programming 0 May 15th, 2007 02:00 PM
ProgressBar on httpwebrequest panuvin C# 1 February 5th, 2007 03:24 PM
HttpWebRequest over SSL Suhrit ASP.NET 2.0 Professional 0 December 7th, 2006 03:41 AM
exe behaves differently JENKINSACTIVE Pro VB 6 5 May 16th, 2005 03:24 AM
one webpage prints out differently to others KiloKilo HTML Code Clinic 1 July 21st, 2003 10:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.