是否可以通过我自己的网站在Craigslist上发布帖子? [英] is it possible to making a posting to Craigslist through my own website?

查看:143
本文介绍了是否可以通过我自己的网站在Craigslist上发布帖子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做的是允许用户使用PHP curl通过我自己的网站在Craiglist上发布帖子.这不是一个自动发布系统,我只是希望用户能够同时发布到Craigslist和我的网站上.到目前为止,我已经设法使用php登录,但是我仍然不确定如何发布标题,描述,联系信息等.我对cURL不熟悉.

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.

推荐答案

您的问题有点笼统,所以我将广泛回答.缩小您的问题范围(或发布后续情况),以便我们为您提供更好的帮助.

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.

这取决于两种主要方式,但是大多数网站都将其阻止,因此我怀疑Craigslist也会这样做.

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

您的访客成为craigslist的访客.

您采用在craigslist上找到的表格,并将其(html代码)托管在您的网站上,但格式为"action"指向他们的网站.

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.

基于REFERER,会话密钥或类似的内容,他们可能会阻止它们.

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

您的服务器充当Craigslist的客户端.

您将表单托管在服务器以及处理页面上.捕获所有输入后,您的服务器现在将充当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.

您应该尝试1是否有效,否则请在2上开始编码.如果您卡在特定部分中,请提出问题,我们将为您提供进一步的帮助.

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.

这篇关于是否可以通过我自己的网站在Craigslist上发布帖子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆