December 11, 201015 yr Newbies 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
December 15, 201015 yr 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
Create an account or sign in to comment