View Single Post

 
Old 07-06-2007, 02:54 PM
Chad <b>Offline</b>
[Administrator]
 
Join Date: May 2007
Posts: 383
Quote:
Originally Posted by kkibak View Post
Hey,

First, just want to say thanks a million for posting this tutorial. Your site singlehandedly got me going with this stuff and I almost have some really cool/useful internal tools set up.

After about 14 hours straight of workin' on this I've run into a problem. Basically, I have a website where I place orders very very regularly. I have to log in, and then check out on their site. I am trying to do this using CURL and with your guidance I have been able to log in and get to the final stages of checkout.

I'm running into a problem on one of the last pages where I have to submit a new "ship to" address. I'm trying to do this with curl and for some reason it doesn't want to work. I have my $data 100% correct I know because I ended up literally cutting and pasting it from firefox to be extra safe (I can switch to dynamic stuff later but for testing I'm doing it this way).

The message I get is:



And it looks to my own site.

What is the basic process for logging in to a site with curl and then submitting more data in forms that are only accessible to a logged in user?

And also, is there an easier way to error check? Needless to say, the message I'm getting isn't very descriptive.

I go to a page like "secure/shipto/change_shipto.asp" and then have to click a link that takes me to secure/shipto/add.asp?url=change_shipto.asp.

I've submitted this form manually and used the firefox extension you mention to check the headers and I am sending all the right data now using curl.

HTML Code:
<

form method="post" action="add1.asp" name="new_account1">

    
    


    



 



There are some input fields within the forum that I had to cut out because they are so long, but that should give the gist of it.

I know I haven't been as clear as I should have, but it's kind of hard when the site actually requires a log in so I can't even show the URL here.

Any help you can provide would be greatly appreciated. I get the problem when submitting the form above.
ok so you already logged in but you want to actually send more data?

you can use the login function for that too. the login function doesn't really login it basically sends data to the url, It can be used for many other things.
Reply With Quote