How to login a site using java
Hi
I need to login a site programatically using java.. how to to login..
thanks
Hi
I need to login a site programatically using java.. how to to login..
thanks
> Hi
> i need to login amazon.uk site programatically
> using java... Can u help me
>
> thanks
With what purpose?
Hi
i need to login to that site and must go the feedback page and then read the data in the feed back page . this all must be done programatically
thanks
With a site like Amazon's, I don't think you will able to do this (don't get me wrong, I don't know to either!).
Perhaps you have no illegal things in mind, but if this was (easily) possible, such a feature could be exploited by people with evil intent.
Hi
hey come on yaar , this is not an illegal act. iam an user of amazon site.i have
the username and passowrd to access . So as per our project requirement i must login to the amazon site with my user name and password.You think iam a seller using amazon..
thanks
> Hi
> hey come on yaar , this is not an illegal act. iam
> an user of amazon site.i have
> he username and passowrd to access . So as per our
> project requirement i must login to the amazon site
> with my user name and password.You think iam a seller
> using amazon..
>
> thanks
Like I said: perhaps YOU have nothing illegal in mind, but if it was easily possible, this could be exploited by people other than YOU that do have illegal things in mind.
HI
So as per your discussion its not programmatic ally possible?. So is there any option to login site.
thanks
> HI
> So as per your discussion its not programmatic ally
>possible?. So is there any option to login site.
> thanks
No, you're not reading what I post. I said it can probably not be done easily, which is not the same as: it cannot be done.
I can imagine that the people who designed that site did their best to prevent it.
Hi
ok let me ask you a question . Assume i have designed a login page which accepts user name and password and passing these values in POST method,this is one separate application
Now iam developing second application to login the first application by passing the user name and password .just assume this sceneraio and tell me how i must proceed regarding this issue...
thanks
You will need to construct HTTP requests and send them to Amazon's web site. You pass the username and password by setting the Authorization header field within the request and this usually has to be BASE64 encoded.
There is a whole series of events that have to occur for HTTP authentication to work. It is a little involved but not overly complicated. The RFC is outlined here http://www.ietf.org/rfc/rfc2617.txt
Google for 'http authentication' and you will find a lot more.
> You will need to construct HTTP requests and send
> them to Amazon's web site. You pass the username and
> password by setting the Authorization header field
> within the request and this usually has to be BASE64
> encoded.
>
> There is a whole series of events that have to occur
> for HTTP authentication to work. It is a little
> involved but not overly complicated. The RFC is
> outlined here
> http://www.ietf.org/rfc/rfc2617.txt
> Google for 'http authentication' and you will find a
> lot more.
Ah, I would've guessed it was harder to do (I am a complete no-no w.r.t. web-related stuff).
Perhaps a silly question, but does it work the same with https, or is there more involved?
> You will need to construct HTTP requests and send
> them to Amazon's web site. You pass the username and
> password by setting the Authorization header field
> within the request and this usually has to be BASE64
> encoded.
While this is an accurate description of "HTTP authentication", it is not the way that most sites nowadays use to authenticate their users.
Usually something called "form-based authentication" is used (for various reasons, mostly because it can be made to look better ;-))
> You will need to construct HTTP requests and send
> them to Amazon's web site. You pass the username and
> password by setting the Authorization header field
Basically, you'll have to reproduce the HTTP request that is sent by (non-programmatic) Amazon users in order to login successfully.
Of course, if anything changes in the Amazon login process (POST to GET, change in parameter names etc...), your application will break.
Which makes the whole thing more of a hack, and pretty fragile.
Amazon have a large number of web services you can use. Not sure if any will provide you with the information you require but it might be worth a look
http://www.amazon.com/gp/browse.html?node=3435361
Hi
i tried to login using http authentication . it worked but not 100%. after entering the url , user name and password . iam reading the url content. through a buffer reader . but the output read was the same old login page but not the page after login.... any help ..
thanks
> Hi
> i tried to login using http authentication . it
> worked but not 100%. after entering the url , user
> name and password . iam reading the url content.
> through a buffer reader . but the output read was
> the same old login page but not the page after
> login.... any help ..
As I was trying to tell you
1) using http auth with user&passw is not enough. You'll have to reproduce exactly the actual http request sent by site users when they log in.
2) Even if you do 1) successfully, your program will become dependent on the Amazon login process. If the later changes in time, your program will break.
As someone suggested, have a look at their Web services. maybe there is something there you could use.
I'm going to say no.
The link I provided also comes with plenty of documentation and guides on how to use the services provided.
Its your project so why not have a go at completing it.
Hi
i need not use web services to login the site . just use http login and read a the details . no need of web services to read .Can any body help me out in this issue
Message was edited by:
mnrnjn_ranjan