/    Sign up×
Community /Pin to ProfileBookmark

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?

Thanks

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@mborjaJul 31.2014 — Read up on HTTP Request Methods here: http://www.w3schools.com/tags/ref_httpmethods.asp
Copy linkTweet thisAlerts:
@WillieCicciauthorJul 31.2014 — Read up on HTTP Request Methods here: http://www.w3schools.com/tags/ref_httpmethods.asp[/QUOTE]

How do i submit these GET methods? Do i need some special type of software(s)? Is so which ones??
Copy linkTweet thisAlerts:
@mborjaJul 31.2014 — 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).
Copy linkTweet thisAlerts:
@jedaisoulJul 31.2014 — 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:

[b]URL?parm=text&parm2=text2&parm3=text3[/b]

Note the use of ? & and = and no quotes round the text. E.g.

[b]http://[/b][b]www[/b][b].somewhere.com?firstName=John&lastName=Doe&email=[email protected][/b]

Care: It is case sensitive.
Copy linkTweet thisAlerts:
@WillieCicciauthorJul 31.2014 — 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.

application {

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)

certification[] certs

}

education {

String school (required)

Integer graduationYear (required)

String degree (required)

String major (required)

}

experience {

String company (required)

Date fromDate [yyyy-MM-dd] (required)

Date toDate [yyyy-MM-dd] (required)

String title (required)

String workDone (required)

}

certification {

String certification (required)

Date dateCertified [yyyy-MM-dd] (required)

}

ool {

String language (required) [must include at least 'javascript'; include any other OOP languages you know]

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
Copy linkTweet thisAlerts:
@jedaisoulAug 01.2014 — 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!
×

Success!

Help @WillieCicci spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...