HTTP Post [英] HTTP Post

查看:88
本文介绍了HTTP Post的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在编写一个C ++程序,它需要定期将XML发布到HTTP

服务器,程序将在不同的平台上运行

包括w32,linux和unix。


我看到有一些库可用,包括cURL

和Libwww来自w3c。我会花一些时间在他们身上,但如果有人对他们很熟悉,请分享他们知道他们在不同平台上编译/运行的好处。另外,如果有一个更好的HTTP

库,我很感激有人会把它带到我的

注意。


因为我只需要POST命令,所以我也在考虑使用socket写自己的b
$ b。这可能更耗时。我错了吗?

非常感谢任何想法。


谢谢,

Andy

Hi,

I am writing a C++ program which needs to post an XML to an HTTP
server periodically and the program will run on different platforms
including w32, linux, and unix.

I see that there are some library available out there including cURL
and Libwww from w3c. I will spend some time on them myself but if
anyone are familiar with them, please share know how good they
compile/run on different platforms. Also, if there is a better HTTP
library out there, I appreciate if anyone will bring that to my
attention.

Since I need only the POST command, I''m also thinking about writing it
myself using socket. That may be even less time consuming. Am I wrong?
Any thought is greatly appreciated.

Thanks,
Andy

推荐答案

Andy Lai写道:
Andy Lai wrote:
我正在编写一个C ++程序,需要定期将XML发布到HTTP服务器,程序将运行在不同的平台上
包括w32,linux和unix。

我看到有一些库可用,包括cURL
和来自w3c的Libwww。我会花一些时间在他们身上,但如果有人熟悉他们,请分享他们在不同平台上编译/运行有多好。此外,如果有一个更好的HTTP
库,我很感激有人会把它带到我的
注意。

因为我只需要POST命令,我''我也在考虑用套接字写自己
这可能更耗时。我错了吗?
非常感谢任何想法。
I am writing a C++ program which needs to post an XML to an HTTP
server periodically and the program will run on different platforms
including w32, linux, and unix.

I see that there are some library available out there including cURL
and Libwww from w3c. I will spend some time on them myself but if
anyone are familiar with them, please share know how good they
compile/run on different platforms. Also, if there is a better HTTP
library out there, I appreciate if anyone will bring that to my
attention.

Since I need only the POST command, I''m also thinking about writing it
myself using socket. That may be even less time consuming. Am I wrong?
Any thought is greatly appreciated.




这是一个想法:这是一个C ++ _language_新闻组。除非你有一个_language_问题,否则你应该找到一个不同的新闻组,你的

问题是关于主题的。试试comp.infosystems。 www。***


V



Here is a thought: this is a C++ _language_ newsgroup. Unless you have
a _language_ question, you should find a different newsgroup, where your
issue is on topic. Try comp.infosystems.www.***

V


Victor,


因为你似乎是自我指定的大厅监视器

这个论坛,我有一个问题。


假设有人对表格有疑问


怎么做X in C ++?


其中X与C ++没有直接关系,而不是它。

是一个通用编程任务,可以用C ++完成。

你是否在comp.lang.c ++上考虑了这个问题?

如果是这样的话为什么?在哪个新闻组组中应该发布?


假设有一个新闻组Z.Y.X.那个问题那么

会成为该新闻组的主题吗?如果有一个胜利的Z.Y.X,那么会怎么样?


这是一个想法:这是一个X新闻组。除非你有一个X问题,否则你应该找到一个不同的新闻组,其中

你的问题是主题。试试comp.lang.c ++ *。
Victor,

Since you seem to be the self-appointed hall-monitor for
this forum, I have a question for you.

Suppose someone has a question of the form

How to do X in C++?

where X bears no immediate relation to C++ other than it
is a general programming task which can be done in C++.
Do you consider such a question off-topic at comp.lang.c++?
If so why? In what newsgroup group should it be posted?

Suppose there is a newsgroup Z.Y.X. Would the question then
be on-topic for that newsgroup? What if there is a Victor
that haunts Z.Y.X who says

Here is a thought: this is an X newsgroup. Unless you have
an X question, you should find a different newsgroup, where
your issue is on topic. Try comp.lang.c++*.
这是一个想法:这是一个C ++ _language_新闻组。除非你有_language_问题,否则你应该找到一个不同的新闻组,其中你的问题是主题。试试comp.infosystems. www。***
Here is a thought: this is a C++ _language_ newsgroup. Unless you have
a _language_ question, you should find a different newsgroup, where your
issue is on topic. Try comp.infosystems.www.***




基思


练习1)将你的逻辑概括为形式问题


Q = X1 X2


并推断Q是否在新闻组Z1.Y1.X1和Z2.Y2.X2的两个主题上都是主题。

新闻组Z1.Y1.X1和Z2.Y2.X2。



Keith

Exercise 1) generalize your logic to questions of the form

Q = X1 X2

and deduce whether Q is on topic at either, both, or neither
of newsgroups Z1.Y1.X1 and Z2.Y2.X2.


Keith H Duggar写道:
Keith H Duggar wrote:
Victor,

因为你似乎是自我指定的大厅监视器<这个论坛,我有一个问题要问你。


不仅仅是维克多支持了时事性的目标,所以消除了这个虚假想法的小小自我的价值。

假设有人对表格有疑问

如何在C ++中使用X?

其中X与C ++没有直接关系而是
一个通用的编程任务,可以在C ++中完成。
你是否在comp.lang.c ++中考虑了这个问题?


我这样做。

如果是这样,为什么?应该在哪个新闻组中发布?


通常是comp.programming,除非你可以更具体。

假设有一个新闻组Z.Y.X.那问题是否会成为该新闻组的主题?
Victor,

Since you seem to be the self-appointed hall-monitor for
this forum, I have a question for you.
It''s not just Victor that supports the goal of topicality, so disabuse
your pissy little self of that bogus idea.
Suppose someone has a question of the form

How to do X in C++?

where X bears no immediate relation to C++ other than it
is a general programming task which can be done in C++.
Do you consider such a question off-topic at comp.lang.c++?
I do.
If so why? In what newsgroup group should it be posted?
Usually comp.programming, unless you can be more specific.
Suppose there is a newsgroup Z.Y.X. Would the question then
be on-topic for that newsgroup?




谁知道?你首先要检查他们是否有一个常见问题列表

,它涵盖了时事性,你读了这个小组,看看通常会发布什么类型的b $ b消息。 />

另一个不愿意遵循基本网络礼仪的爱哭的人。


Brian



Who knows? You start out by checking to see if they have a FAQ list
that covers topicality and you read the group to find out what sort of
messages are typically posted.

Another whiny crybaby who can''t be bothered to follow basic netiquette.


Brian


这篇关于HTTP Post的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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