Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.0k views
in Technique[技术] by (71.8m points)

is it possible to making a posting to Craigslist through my own website?

What I am trying to do is allow users to making postings to Craiglist through my own website using PHP curl. This is NOT an automated posting system, I just want users to be able to post onto Craigslist and my website at the same time. So far, I've managed to log in using php but I'm still not sure how to post the title, description, contact information, etc. I am not familiar with cURL.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Your question is kind of broad, so I'll answer broadly. Narrow down your question (or post a follow-up) so we can help you better.

Is it possible to making a posting to Craigslist through my own website?

It depends, there are two major ways, but most websites block these so I suspect Craigslist does too.

1. Clientside

Your visitors become visitors of craigslist.

You take the form that you find on craigslist, and host it (the html code) on your site, but with the form 'action' pointed to theirs.

They'll probably block these, based on the REFERER, a session key or something alike.

2. Serverside

Your server acts as a client for Craigslist.

You host the form on your server, and the processing page as well. After you've captured all the input, your server will now act as a client to Craigslist, using indeed for example php curl.

You should try if 1 works, if not, start coding on 2. If you're stuck in a specific part, post a question and we'll help you further.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...