Transferring membership parameters

  • Thread starter Thread starter goldenrate
  • Start date Start date
G

goldenrate

Hi everyone,

I have a client who wants a solution for the following problem. I'm not sure
that its possible but I'll ask anyway.

The client has joined godaddy's reseller plan. They've provided him with a
complete working site that can be viewed here:
https://www.securepaynet.net/gdshop/rhp/hottestreseller.asp?prog_id=438541&ci=3271&

Let's call this site 'godaddy's site'

I have no access to the code of the site nor to its database. Actually all I
can do is to add HTML code to some pages.

The client has another ASP base (.NET 3.5) application to which I have full
access (database and ftp). The site implements .NET membership system.

Let's call this site the 'Client Site'.

I need to creat a registration form on Client's Site. The form will
register the new member on both sites concurrently. The part that register
the new member on Client's Site is trivial, but I dont know if its possible
to do so on godaddy's site.

I'd appreciate if someone can inlight me on this issue.

Thanks,
David
 
Hi David,

From your description, you're going to implement a web application which
work as a client, and it need to perform login/authentication against two
applications, one local app that you have API access for the authentication
db, while another application you can only access via browser ,correct?

As for the application which you can only access via webbrowser, I think
you should first try visiting its authentication or registering page to see
how it works, whether it require you to put some image based authenticode.
If not, you can consider writing some code(via the HttpWebRequest class in
.NET) to perform programmtic login or user registering.

Here are some reference about using HttpWebrequest to perform programitc
http post:

#Sample forms authentication test in C#
http://blogs.iis.net/ksingla/archive/2006/08/23/sample-forms-authentication-
test-in-c.aspx

#Working with HttpWebRequest and HttpWebResponse in ASP.NET
http://www.worldofasp.net/aspnet/Tutorials/WebRequest/Working_with_HttpWebRe
quest_and_HttpWebResponse_in_ASP.NET_114.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
 
Hi David,

How are you doing? Have you got any progress on this issue or does the
information in my last reply help you some?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).


--------------------
 
Hi,

Thanks for asking.

I'v been looking at the links yoe sent me and try to figure out the code.I
try to implement the code, with some changes, to my login form but without
success. Actually I have a few questions regarding this issue:
1. Is it going to work for every form that doesn't use CAPTCHA as a
requirment for submission?
2. I assume that the element of the POST string are different from one login
form to another; I also understand that there is a tool that can get the
POST data the form needs. Do you know anything about that?
3. Do you have more articles on this subject (i.e. programmatically login)?
I couldn't figure out the idea in depth from the blog?

Thanks so much for your help,
David
 
Thanks for your reply David,

Yes, if web pages use CAPTCHA , that means interactive operation is
required, that'll prevent us to write code to simulate page
submitting/posting. For most pages which do not use CAPTCHA, the submit is
just a HTTP get/post request. We can simulate such request via some network
component such as the WebRequest or Webclient class in .net framework.

Here are some articles provide more detailed example(specific to ASP.NET
web page which has viewstate issue to deal with):

#How to Submit the Login Form Programmatically in ASP.NET?
http://www.digcode.com/default.aspx?page=ed51cde3-d979-4daf-afae-fa6192562ea
9&article=ad4b5144-77f8-45c2-8a9a-282c8166f39a

#Screen Scraping, ViewState, and Authentication using ASP.Net
http://odetocode.com/articles/162.aspx

Also, for inspecting the underlying http message(such as request
header/body and response header/body), you can use the "Web Developmente
helper" for IE:

#Web Development Helper
http://projects.nikhilk.net/WebDevHelper/

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
 
Hi David,

Does my last reply help on your questions? If you still have anything
unclear, welcome to post here, I'd be glad to help.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
 
Hi Steven,

Yes your last post so as the previous ones are very usfull. I'm still
learning the subject but I was able to make a great progress.

I had a problem with getting the SetCookie from the response. The specific
response contains a set of Set-Cookies and I was wondering if I can read the
all and set them all. I'd appreciate if you can provide me any reference to
that.


Thanks again for your excellent customer service,

Regards,
 
You're welcome :)

Have a nice day!

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

--------------------
 
Back
Top