Help?! How do I do a GET
Hey guys Im new to web developing so I apologize in advance if this is posted in the wrong section. I have been looking up webdev jobs recently just to see what I have to learn to expand my skill set. I came across a company's site that required a completion of a quick test in ordered to be considered for the position. Not going to apply since Im still a beginner but their question was ....
Perform a GET to this URL with the following parameters: firstName, lastName, email.
Anyone know how to do this?
How do i submit these GET methods? Do i need some special type of software(s)? Is so which ones??
Originally Posted by mborja
If you read again closely, the page states: "Note that query strings (name/value pairs) is sent in the URL of a GET request" (i.e. not in a form).
You could write a mini web page containing a form with action="URL" and method=get and three input fields, and a submit button. However, the easiest way to do it is to just type the lot into the web browser's address box. The format of a GET is:
Note the use of ? & and = and no quotes round the text. E.g.
Care: It is case sensitive.
Last edited by jedaisoul; 07-31-2014 at 07:06 PM.
Awesome ! Thanks guys I got it. I knew it was easy but Im just a noob at this. Okay so I completed the GET part. Step 2 says
Congratulations willie cicci, you completed Step 1!
Step 2 is as follows:
Perform a POST to the URL you constructed in Step 1.
You will need to post an instance of the application object described below.
You will need to post the body in properly formatted JSON.
You will need to pass in all required headers.
Please set the isTest boolean to TRUE while testing, and FALSE when you are ready for your final submission.
Boolean isTest (required)
String firstName (required)
String lastName (required)
String email (required)
String phone (required)
String zipcode (required)
String describeYourself (required)
ool objectLanguages (required)
education education (required)
experience experience (required)
String school (required)
Integer graduationYear (required)
String degree (required)
String major (required)
String company (required)
Date fromDate [yyyy-MM-dd] (required)
Date toDate [yyyy-MM-dd] (required)
String title (required)
String workDone (required)
String certification (required)
Date dateCertified [yyyy-MM-dd] (required)
Integer proficiency (required) [scale of 0-10, 0 being none, 10 being proficient]
A successful post will result in a code 202 and you will receive an automated email confirmation. Good Luck!
Does all this go in the address bar again? If so what is the format of the syntax? I know the GET url was url.com?par1=text1&par2=text2...etc
Sorry, you cannot access the post mechanism from the address bar. You can access the POST mechanism with a form, but I'm not sure whether that will generate the output in JSON syntax? Besides which, it is intended as evidence of your level of proficiency. So there would be no point my doing it for you even if I could!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)