Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2007

Tip: Looking for answers? Try searching our database.

post to aspx

Thread view: 
G. Garrett Campbell - 25 Oct 2007 16:43 GMT
I am attempting to post a form to an aspx web site.

The site does not recognize something in the post so the response does not
match the behavior
of a browser.

In particular I am logging into a site like:
www.xyz.com/US_EN/MM/Login.aspx
with posted user/password post form information.

The browser will login, but HttpClient will not.

Is there something special about aspx??

Thanks
Roedy Green - 25 Oct 2007 16:51 GMT
On Thu, 25 Oct 2007 09:43:53 -0600, "G. Garrett Campbell"
<g395@comcast.net> wrote, quoted or indirectly quoted someone who said

>Is there something special about aspx??

What you want to do is watch some program that knows the site, to see
what sort of messages go back and forth.  See
http://mindprod.com/jgloss/sniffer.html
I use WireShark.  See http://mindprod.com/jgloss/wireshark.html

One you know what you are SUPPOSED to be doing you have a much better
shot at it.

See http://mindprod.com/products.html#HTTP for a class that will do
the GET, POST etc for you and capture results.

See http://mindprod.com/products1.html#SUBMITTER to see a sample
application that pretends to be a browser, sending data to various
sites.

Other material that may help:

http://mindprod.com/jgloss/http.html
http://mindprod.com/jgloss/cgi.html
http://mindprod.com/jgloss/htmlcheat.html#FORMS
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

G. Garrett Campbell - 30 Oct 2007 04:28 GMT
Thanks,

I found fiddler (sorry a MSFT free ware but in decodes https: as well as
http:)
but I still can not identify what is different between the browser and the
httpclient.
I set all the cookies and the header properties the same, but still doesn't
work.
Interestingly I had to read all the .gif files to get all the cookies.  The
html page it self
does not incorporate all the cookies.

Next I'll try sniffer on an example http site.

> On Thu, 25 Oct 2007 09:43:53 -0600, "G. Garrett Campbell"
> <g395@comcast.net> wrote, quoted or indirectly quoted someone who said
[quoted text clipped - 21 lines]
> http://mindprod.com/jgloss/cgi.html
> http://mindprod.com/jgloss/htmlcheat.html#FORMS
Lew - 30 Oct 2007 14:15 GMT
> Thanks,

Please do not top-post.  Instead, follow trim-and-inline posting.

There is a "what they're for" FAQ post to this group every five days.  It's
worth reading, and following its links.

Signature

Lew



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.