Newbies SmartEnergy Posted December 11, 2010 Newbies Posted December 11, 2010 I am trying to post data to a url with multiple fields The post also has a login and password. I think the post string should look like this: http://smartenergy.vicihost.com/vicidial/non_agent_api.php? function=add_lead& vendor_lead_code=SEABOG007& phone_number=1234567890& first_name=JOSE& last_name=LOERA& address1=229 LA PAZ DR& city=IMPERIAL&state=CA& postal_code=92251& country_code=USA& [email protected]& comments=sdsdssd& (homeowner?)=YES& (monthlyElecricBill?)=500& user=4002& pass=andresoro& source=ceeintegrity& list_id=5001& campaign id=2001 When I try to enter this into the post to url function in Scriptmaster I get an error. Admittedly I am a beginner with ScriptMast so I appreciate any help anyone can provide me. Thanks, Andrew
fseipel Posted December 15, 2010 Posted December 15, 2010 In this case a GET request will suffice since the server will work/expects that, i.e. ScriptMaster get url as text with the below as its parameter, or simply a Filemaker WebViewer with: http://smartenergy.vicihost.com/vicidial/non_agent_api.php?function=add_lead&vendor_lead_code=SEABOG007&phone_number=1234567890&first_name=JOSE&last_name=LOERA&address1=229+LA+PAZ+DR&city=IMPERIAL&state=CA&postal_code=92251&country_code=USA&email=loeraanimal%40aol.com&comments=sdsdssd&%28homeowner%3F%29=YES&%28monthlyElecricBill%3F%29=500&user=4002&pass=andresoro&source=ceeintegrity&list_id=5001&campaign+id=2001& Note the spaces must be URL encoded but the & should not be. Since you posted the password to this site to the forum, you may want to change it. I am trying to post data to a url with multiple fields The post also has a login and password. I think the post string should look like this: http://smartenergy.vicihost.com/vicidial/non_agent_api.php? function=add_lead& vendor_lead_code=SEABOG007& phone_number=1234567890& first_name=JOSE& last_name=LOERA& address1=229 LA PAZ DR& city=IMPERIAL&state=CA& postal_code=92251& country_code=USA& [email protected]& comments=sdsdssd& (homeowner?)=YES& (monthlyElecricBill?)=500& user=4002& pass=andresoro& source=ceeintegrity& list_id=5001& campaign id=2001 When I try to enter this into the post to url function in Scriptmaster I get an error. Admittedly I am a beginner with ScriptMast so I appreciate any help anyone can provide me. Thanks, Andrew
Recommended Posts
This topic is 5103 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now